Editing Your Own OpenStreet Maps

JOSM (Java OpenStreetMaps) editor is a tool you can use to create your own maps. This tool allows you to build your own maps based on data from OpenStreetMaps, other online sources or your own data. You can make edits, add annotations and upload your results back on to the OpenStreetMaps server.

There are two ways you can run JOSM. The first is to install it on your system. If you have it within your package management system, you may want to install that way so any required dependencies are installed automatically. For example, the following command will install it on Debian-based systems:

sudo apt-get install josm josm-plugins

Notice that the above command also installs the package of plugins for JOSM. A large number of plugins are available from the community on the main project's website. And, if you want the latest version of JOSM, you can download a jar file from the project's website.

The second way to run JOSM is actually using a Java Web Start package. You simply launch the JNLP file, again from the main project's website.

Once you have started JOSM, in whichever way you have chosen to launch it, you will get a window with an information panel about updates and startup information. There also are links to online help information and the community forums.

Figure 1. When you first start JOSM, you get an information panel.

Now you can start creating your first map. The easiest way to get started is to download OpenStreetMap data as a starting point. Clicking on the File→Download from OSM menu item will pop up a new window where you can select an area to use as your map base.

Figure 2. You can select and download an area of the Earth as your map base.

At the top of this window, you can choose what data to download. The choices are OSM data, raw GPS data and additional notes. Within the map window, you can pan around to the area of interest and zoom in to an appropriate level. You then click and drag with your mouse to select a box of the area that you want to use in your map. Be careful with how big a bounding box you select, because the data server limits how much data you can pull at once. Luckily, you will get a warning at the bottom of the window if the bounding box is too large.

Once you have made your selection, you either can click on the download button to download it as a new map, or you can click the option "Download as a new layer" at the bottom of the map pane first to add this data to an already existing map. For now, let's just click the download button to get a brand-new map started.

Figure 3. You can download OpenStreetMaps data to start a brand-new map.

Looking at the new map, you can see that there is a lot of information available and a lot of functionality you can use to interact with that information. On the left-hand side, there is a strip of icon buttons you can choose from to interact with the map data. The right-hand side has several panes that can show the layers and detailed information of selected objects on the map. You can change which panes are visible on the right-hand side by clicking the Windows menu item and selecting the panes that interest you. If you select an object on the map, such as a road section or water way, the details of that selected object will show up in the information panes on the right-hand side.

Raw geographical information is not the only data source that is available to you. Clicking the Imagery menu item gives you a menu of possible data sources where you can download geographical images. You can change this list by clicking the Imagery→Imagery Preferences menu item and selecting the sources you want to use.

Figure 4. You can select the data sources used for downloading geographical imagery data.

In Figure 5, I selected the Imagery→OpenStreetMap Carto (Standard layer) menu item to get the cartographic imagery for my map area. You can choose the layer you want to work on by selecting it in the Layers pane at the top of the right-hand side. You also can change the order in which the layers are stacked or change whether they are visible. If you have your own imagery available, you can click on the Imagery→Rectified Image menu item to select the server from which your imagery is served.

Figure 5. You can add multiple layers with satellite imagery or cartographic imagery.

What I have covered so far is fine if you just want static maps of pre-existing data, but that isn't very interesting. The last bit of functionality I want to cover here is how to add your own data to these maps.

You can add nodes, or a series of nodes, by selecting the appropriate tool from the list of icons at the top of the left-hand side. When you add a node, you can tag it as a particular type of node or group of nodes. You can access several preset types by clicking the Presets menu item. These presets include natural objects, man-made objects and lots of geological features. This allows you to start adding tracks, objects and other features that are based on local knowledge, which means that you can create very specialized maps of your area.

Clicking the Edit→Preferences menu item brings up the preferences window for JOSM. You can tweak several options to change how JOSM works. The Map Settings tab lets you change the main display options, such as the projection or the mapping styles available for use in JOSM.

Figure 6. The preferences window lets you tweak a lot of the functionality in JOSM.

Figure 7. The Map Settings tab lets you select and download alternate mapping styles for your map display.

As I mentioned earlier, a large selection of plugins is available from the community of JOSM users. You can access this library from the Plugins tab, where you can download and activate the plugins that interest you. Once you start looking at the available options, you'll see that there is a lot of extended functionality available for doing some serious work with your maps.

Figure 8. The Plugins tab lets you select from a large library of available plugins.

Once you are happy with a map, you'll want to save your work. JOSM can save all of the data related to your map in one of many different geographical file formats. Clicking on File→Save As pops up a save window where you can select from file formats such as GPX, GeoJSON or OSM Server Files. You also can upload changes back to the OpenStreetMaps servers if you are adding previously unknown information.

Load Disqus comments

Community Events

New Orleans, LA, USA
Copenhagen, Denmark
Austin, TX, USA
Austin, TX, USA
San Jose, CA, USA