[[TranslatedPages]] = 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 [#LayerState layer states] may block this. === Context menu ===#ContextMenu OSM data layers have following context menu: ||= **Icon** =||= **Name** =||= **Shortcut** =|| || [[JOSMImage(dialogs/activate,link=wikitr:/Help/Dialog/LayerList#ActivateLayer,middle)]] ||\ || [wikitr:/Help/Dialog/LayerList#ActivateLayer Activate] ||\ || **`Shift+A`⤳`[0–9]`** ||\ || || [[JOSMImage(dialogs/showhide,link=wikitr:/Help/Dialog/LayerList#VisibilityLayer,middle)]] ||\ || [wikitr:/Help/Dialog/LayerList#VisibilityLayer Show/Hide] ||\ || **`Shift+S`⤳`[0–9]`**||\ || || [[JOSMImage(dialogs/autoscale/layer,link=wikitr:/Help/Action/ZoomToLayer,middle)]] ||\ || [wikitr:/Help/Action/ZoomToLayer Zoom to layer] ||\ || ||\ || || [[JOSMImage(dialogs/delete,24,link=wikitr:/Help/Dialog/LayerList#DeleteLayer,middle)]] ||\ || [wikitr:/Help/Dialog/LayerList#DeleteLayer Delete] || ||\ || |||| || [[JOSMImage(dialogs/mergedown,link=wikitr:/Help/Action/MergeLayer,middle)]] ||\ || [wikitr:/Help/Action/MergeLayer Merge] || ||\ || || [[JOSMImage(dialogs/duplicatelayer,link=wikitr:/Help/Action/DuplicateLayer,middle)]] ||\ || [wikitr:/Help/Action/DuplicateLayer Duplicate] || ||\ || || [[JOSMImage(save,link=wikitr:/Help/Action/Save,middle)]] ||\ || [wikitr:/Help/Action/Save Save] || ||\ || || [[JOSMImage(save_as,link=wikitr:/Help/Action/SaveAs,middle)]] ||\ || [wikitr:/Help/Action/SaveAs Save as ...] || ||\ || || [[JOSMImage(exportgpx,link=wikitr:/Help/Action/GpxExport,middle,24)]] ||\ || [wikitr:/Help/Action/GpxExport Export to GPX ...] ''(only in [wikitr:/Help/ExpertMode expert mode])'' || ||\ || || [[JOSMImage(converttogpx,link=wikitr:/Help/Action/ConvertToGpxLayer,middle,24)]] ||\ || [wikitr:/Help/Action/ConvertToGpxLayer Convert To GPX Layer] ''(only in expert mode)'' || ||\ || |||| || [[JOSMImage(dialogs/edit,link=wikitr:/Help/Action/RenameLayer,middle)]] ||\ || [wikitr:/Help/Action/RenameLayer Rename Layer] || ||\ || || [[JOSMImage(no_upload,link=wikitr:/Help/Action/EncourageDiscourageUpload,middle)]] ||\ || [wikitr:/Help/Action/EncourageDiscourageUpload Discourage upload] ''(only in expert mode)'' || ||\ || || || Data consistency test || ||\ || |||| || [[JOSMImage(info,link=wikitr:/Help/Action/LayerInfo,middle)]] ||\ || [wikitr:/Help/Action/LayerInfo Info] || ||\ || === Layer State ===#LayerState 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` =||= =||\ || || [[JOSMImage(layer/osmdata_small)]] ||\ || Default || || || ||\ || No special behavior. ||\ || || [[Image(Help/Menu/OSMLayer:noupload.svg,link=,middle)]] ||\ || Upload discouraged || `false` || || ||\ || A warning before the upload appears. ||\ || || [[Image(Help/Menu/OSMLayer:noupload.svg,link=,middle)]] ||\ || Upload blocked || `never` || || ||\ || Uploading is not possible, the upload button is greyed out. ||\ || || [[Image(Help/Menu/OSMLayer:nodownload.svg,link=,middle)]] ||\ || Download blocked || || `never` || ||\ || The downloaded data goes into another layer which doesn't block downloads if available. Otherwise a new layer is created. ||\ || || [[Image(Help/Menu/OSMLayer:nodownloadnoupload.svg,top,link=,middle)]] ||\ || Upload and download blocked || `never` || `never` || ||\ || The combination of the two states above. ||\ || || [[JOSMImage(lock)]] ||\ || 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 [wikitr:/Help/Action/EncourageDiscourageUpload 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. {{{#!xml # Default: # Upload discouraged: # Upload blocked: # Download blocked: # Upload and download blocked: # Locked: }}} ---- Back to [wikitr:/Help/Dialog/LayerList Layers panel]\\ Back to [wikitr:/Help Main Help]