[[TranslatedPages]] = Tags/Membership window = [[Image(source:trunk/images/dialogs/propertiesdialog.svg,30,middle,margin-right=20)]] ''Keyboard shortcut'': **`Alt+Shift+P`** — one of the [Help/ToggleDialogs#Toactivateawindow JOSM windows] == Try it yourself == Open this [https://josm.openstreetmap.de/attachment/wiki/Help/Dialog/TagsMembership/TagsMembershipDemo.2.osm sample file] by using the menu item [wiki:/Help/Menu/File "File > Open Location ..." (Ctrl+L)]. == Overview of this window == #Structure From the top: 1. current counts for currently selected objects in the header: objects, tags, memberships 2. [Help/Concepts/Object#presets presets], namely: * All matching presets for single object, if only one object was selected * Common presets of selected objects (set intersection and result set may be empty because there no common preset(s) for all objects) * Annotations presets (notes or address) will be displayed if at least one object had such tag Possible activation: left mouse click on the preset will open complete view of this preset, as [wiki:Introduction#Leftmouseclickonrespectivepresetheadingwillopencompletepresetview was shown in "Introduction"] 3. Tag filter ([Help/Action/Search any search string]) * Simple string (such as {{{Rome}}} will searched both in values and in keys (i.e. if you add tag "Rome"=yes it will be matched against "Rome" search) * {{{"addr:city":ome}}} or {{{"addr:city":Rome}}}) will match addr:city=Rome tag 4. table of: * key/value pairs for single [Help/Dialog/SelectionList#Selection selected] object * complete list of tags if ''filter'' was empty * empty if filter from 3 matches no tags * only matched tags if there matching tags * annotated summary for multiple selected objects (select shop=pet together with shop=computer to see what it means) * empty space (below all items). Possible activation: double click on empty space will open [[Help/Dialog/AddValue]].[[br]] Possible activation: [=#rightclicktag right click on item from tag table] will show [Help/Menu/TagsMembershipMenu#Rightclickonitemsintagspart respective context menu] ("Add" to [Dialog/AddValue add value window]; "Edit" to [Dialog/EditValue change value dialog]) 5. membership information (is about [wiki:Help/Concepts/Object#Relations relations]) * no matching applied for parent relations; this result in union of all involved parent relations for the selected objects * displayed only for objects that have parent relations in [Help/Dialog/LayerList#ActivateLayer the current data layer] * objects without parent relations in local [Help/Dialog/LayerList#Layertypes data layer] can have parent relations on the server Possible activation: [=#rightclickmembership right click on item from parent relations] will show [Help/Menu/TagsMembershipMenu#Rightclickonitemsinmembershipspart respective context menu] ("Edit" item will open [Dialog/RelationEditor relation editor])[[br]] Possible activation: [=#doubleclickmembership double click on item] will open [Dialog/RelationEditor relation editor] (and selection will be preserved) 6. [#Buttons 3 buttons] === Visibility notes === * Items 1-4 are shown only if selection has at least one ''tagged'' object. * Item 5 requires parent relations * Item 6 (3 buttons) are visible by default ([[Help/JOSM interface customization]]) === Examples === Single object without parent relations (note: [wiki:Introduction#Leftmouseclickonrespectivepresetheadingwillopencompletepresetview you can click on headings to open complete presets]): [[Image(tagsmemberships-single-object.png,nolink)]] Single object used in 3 [Help/Concepts/Object#Relations relations] at once: [[Image(tagsmemberships-single-object-multiple-parent-relations.png​,nolink)]] == Usage == This window shows you the existing tags for the selected objects, and allows you to add, edit, or delete tags. The keys and values in use in OpenStreetMap can be found using [Help/Concepts/Object#Tags multiple ways].\\ Note: You can also add tags to selected object using presets, it was covered in [[Introduction#Presets]]. == Buttons == Basic usage was covered in [[Introduction#AddingTags]]. === [[Image(source:trunk/images/dialogs/add.png,bottom,margin-right=10,inline)]] Add (''`Alt+A`'') === #Add Adds key/value pairs to selected objects using [Dialog/AddValue add value window] Alternative activation steps covered in overview section above. === [[Image(source:trunk/images/dialogs/edit.png,bottom,margin-right=10,inline)]] Edit (''`Alt+S`'') === #Edit * Change selected key/value pair using [Dialog/EditValue change value window] - if tag was selected * Open relation editor - if relationship was selected Alternative activation steps covered in overview section above. === [[Image(source:trunk/images/dialogs/delete.png,bottom,margin-right=10,inline)]] Delete (''`Ctrl+Alt+Shift+D`'') === #Delete Delete selected key/value pairs. If you select one or several key/value pair in the tags window, and then click the **Delete** button they will be immediately deleted. == Advanced Preferences == ||= **Property** =||= **Default** =||= **Explanation** =|| || {{{properties.presets.top}}} || {{{true}}} || If set to {{{true}}}, displays the list of presets matching the current tags. || {{{url.openstreetmap-wiki}}} || {{{https://wiki.openstreetmap.org/wiki/}}} || The address of the OSM wiki used to see the documentation of a tag. ---- Back to [Help/ToggleDialogs Windows][[BR]] Back to [wiki:/Help Main Help]