Web-based OSM data editor
The editor is basically an advanced RawEditor, with these improvements:
- instead of OSM XML you edit more friendly Level0L code
- you can edit many entities at once
- file uploads and map calls are supported
- extra data like version numbers are stored on a server
- there is a map for locating and moving nodes
Type a entity type and identifier into the URL field, for example, "w123123". You can specify many entities at once (comma-separated), for downloading parent ways and relations add an asterisk after the identifier (n45678*); add an exclamation mark for downloading child objects (e.g. nodes for a way). URLs, of course, are supported, both pointing to osm.org website and to API (note that all URLs are rewritten, so you can't have anything outside osm.org website). After then press "Add" or "Replace" button, depending on whether you wish to keep edited data.
When cursor in textarea is positioned inside a node definition, press "→" button (or check "Follow cursor") to display its location on the map. You can then move the marker and press "←" button to update node's coordinates.
To upload, log in, enter changeset comment (it is mandatory) and press "Upload" button. Instead you may download an .osm file, open it in JOSM and upload it from there.
To open the editor with a preloaded object or map region, use "url" query parameter: e.g. http://level0.osmz.ru/?url=node/240095754
The editor has many buttons, with the following functions:
- Add to editor
- Appends contents of a file or URL to the data being edited. May cause conflicts or overwrite anything.
- Replace data in editor
- Clears edited data before loading file or URL. This will result in losing all changes.
- Revert changes
- Reverts modified objects to their base state and updates contents of deleted objects. Preserves created objects and deletion flags.
- Clear data
- Exactly what it says on the tin.
- Log in / Log out
- Authenticates you with an OSM OAuth. The editor needs editing permissions, user details are optional.
- Download .osm
- Provides all edited data in a JOSM file format. You can import these data later (watch out for conflicts if you wait too long).
- Does nothing: the data is validated every time you press any button. The results are printed below the text area.
- Check for conflicts
- Downloads all objects that were modified and checks if there are new versions of them.
- Show osmChange
- Browse XML data stream that would be uploaded to OSM after pressing "Upload" button.
- Upload to OSM
- If the changeset comment is entered, there are modified objects and no severe validation messages, uploads changes to the OSM database. After that clears the data.
- Arrow buttons
- Pan map to a node cursor is currently inside, or copy coordinates to that node. Check "Follow cursor" to spare yourself from constant clicking on "→" button.
- Edit this area
- Copies current map center coordinates to URL field. Press "Add" or "Replace" button to download the area around that point.
- Find a POI on the osm.org (or on editor's side map), and zoom as close as you can on it.
- Copy osm.org URL to editor's URL field (or press "Edit this area").
- Press "Replace data in editor" button.
- Find the POI in question. It can be a node or a way, sometimes even a multipolygon relation.
- Edit its tags.
- Press "Log in" button and the press "Accept" (or whatever osm.org site asks).
- Type a changeset comment (e.g. "updated opening hours") and press "Upload to OSM".
Create a POI
- Check that the POI isn't there already (steps 1-4 of editing a POI). If not, press "Clear data".
- Navigate to the location of the POI in the side map, placing the marker at its place.
- Type "node" (without quotes) in the text area.
- Press left arrow ("←") button to add coordinates.
- Add tags on next lines in format "tag = value" (without quotes).
- Upload changes: see steps 6-7 in POI editing section.
Delete a building
- Download an area with the building (see steps 1-3 of editing a POI).
- Find the building. We'll assume it's a way.
- Add a minus sign ("-") to its header, like that: "-way 123123".
- The way includes some nodes, they need to go only if they are not used by other ways. Check that and add "-" to headers of unused nodes.
- Upload changes (steps 6-7 of editing a POI).
- If you received an error, you probably deleted a node referenced by other ways. Remove some minuses.
How to check a way is not referenced by a relation:
- Copy its header ("way 123123") to the URL field, add an asterisk ("way 123123*") and press "Add to editor".
- See if any relations appeared with the way as a member.
- To properly delete the way in this case, remove the reference to it from the relation.
Split a way
- Download a way with its nodes: way12345678! (with the exclamation mark)
- Find a node to split the way at by moving a cursor and checking the map.
- Duplicate that node reference line.
- Add "way" line (only three letters, no ID) between those two node lines
- Copy all of the tags from the first way under the new "way" header.
- Upload changes (steps 6-7 of editing a POI).
To join ways, you would have to copy node references from one of them, then prepending the way header with "-" character.
Undelete a node
- Open the node's page on osm.org: e.g. http://www.openstreetmap.org/node/345345
- Check that it is deleted and find its version.
- Enter "n345345.W" into editor's URL field, where 345345 is the node's identifier, and W is its version minus one (e.g. 2 if the version was 3).
- Check that coordinates are there, then add the deletion version to the node's identifier after a dot, like that: "node 345345.3: <lat>, <lon>".
- Upload changes (see steps 6-7 of editing a POI).