wiki:Help/Menu/OSMLayer

Context Menu > OSM Data Layer

A Data layer contains map data objects downloaded from OpenStreetMap or created and edited by users, usually meant to upload them back to OSM. Special layer states may block this.

Context menu

OSM data layers have following context menu:

Icon Name Shortcut
source:trunk/resources/images/dialogs/activate.svg Activate Shift+A[0–9]
source:trunk/resources/images/dialogs/showhide.svg Show/Hide Shift+S[0–9]
source:trunk/resources/images/dialogs/autoscale/layer.svg Zoom to layer
source:trunk/resources/images/dialogs/delete.svg Delete
source:trunk/resources/images/dialogs/mergedown.svg Merge
source:trunk/resources/images/dialogs/duplicatelayer.svg Duplicate
source:trunk/resources/images/save.svg Save
source:trunk/resources/images/save_as.svg Save as ...
source:trunk/resources/images/exportgpx.svg Export to GPX ... (only in expert mode)
source:trunk/resources/images/converttogpx.svg Convert To GPX Layer (only in expert mode)
source:trunk/resources/images/dialogs/edit.svg Rename Layer
source:trunk/resources/images/no_upload.svg Discourage upload (only in expert mode)
Data consistency test
source:trunk/resources/images/info.svg Info

Layer State

By default all actions are possible with the OSM data in a layer. But the three switches Upload, Download and Locked can change this:

Switch Upload Download Locked Behavior
key name  upload download locked
source:trunk/resources/images/layer/osmdata_small.svg Default No special behavior.
Upload discouraged false A warning before the upload appears.
Upload blocked never Uploading is not possible, the upload button is greyed out.
Download blocked never The downloaded data goes into another layer which doesn't block downloads if available. Otherwise a new layer is created.
Upload and download blocked never never The combination of the two states above.
source:trunk/resources/images/lock.svg Locked   true This includes download=never and upload=never and additionally blocks any editing of the data.

The Upload switch can be toggled to false with Discourage upload in the context menu mentioned above. For all other states the switches must be edited in the .osm-file with a text editor. The switches are optional parts of the osm key in the second line.

# Default:
<osm version='0.6' generator='JOSM'>

# Upload discouraged: 
<osm version='0.6' generator='JOSM' upload='false'>

# Upload blocked:
<osm version='0.6' generator='JOSM' upload='never'>

# Download blocked:
<osm version='0.6' generator='JOSM' download='never'>

# Upload and download blocked:
<osm version='0.6' generator='JOSM' upload='never' download='never'>

# Locked: 
<osm version='0.6' generator='JOSM' locked='true'>

Back to Layers panel
Back to Main Help

Last modified 2 years ago Last modified on 2022-08-14T15:53:29+02:00

Attachments (3)

Download all attachments as: .zip

Note: See TracWiki for help on using the wiki.