Changes between Version 61 and Version 62 of TaggingPresets
- Timestamp:
- 2014-10-29T15:02:16+01:00 (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TaggingPresets
v61 v62 1 1 [[TranslatedPages(outdated=The preset syntax has changed and the copy from XML files needs to be joined with normal description)]] 2 [[PageOutline(2-10,Table of Contents)]] 2 3 = Tagging Presets = 3 4 JOSM supports distributed tagging presets. This is a XML config file that describes a GUI for entering tags (or properties, annotations, sometimes called map features). The XML files can be placed anywhere in the web or at the users local file system. Presets can be added by the users at a central page [wiki:Presets]. … … 50 51 51 52 === Tags === 52 The document prolog :53 ==== The document prolog ==== 53 54 '''<presets>''':: 54 55 Has to be the main tag of the file. Supports following attributes … … 60 61 * '''link''' (i18n) - web link to further details 61 62 * '''icon''' - informational icon for the preset 62 Comments :63 ==== Comments ==== 63 64 '''<!-- this is an example comment -->''':: 64 65 The document can contain embedded comments. 65 Menu creation :66 ==== Menu creation ==== 66 67 '''<group>''':: 67 68 Used to group items in sub menus. ''name'' is required, ''icon'' is optional attribute. … … 70 71 '''<separator/>''':: 71 72 Insert a line separator into the menu. 72 Create instructions for the user :73 ==== Create instructions for the user ==== 73 74 '''<label>''':: 74 75 Labels are static texts for display. ''text'' is a required attribute. … … 79 80 '''<link>''':: 80 81 Specify a web link for this feature or to anything else of use. The ''href'' attribute is required. 81 Attribute entry and selection dialog boxes :82 ==== Attribute entry and selection dialog boxes ==== 82 83 '''<text>''':: 83 84 A text edit field to enter any arbitrary string from the user. ''key'' is mandatory, ''text'', ''default'', ''match'' and ''required'' is optional … … 90 91 '''<check>''':: 91 92 A checkbox which the user can only select or deselect. The ''key'' attribute is mandatory. ''text'', ''default'', ''match'' and ''required'' is optional. 92 Set a key value pair :93 ==== Set a key value pair ==== 93 94 '''<key>''':: 94 95 This tag will always set a key to a specific value. ''key'' is required and if ''value'' is present, the key will be set. If ''value'' attribute is ommited, the key is removed. ''match'' is optional. 95 Templates 96 ==== Templates ==== 96 97 '''<chunk>''':: 97 98 A template of elements for later (repeated) use. The ''id'' attribute is mandatory.
