Changes between Version 57 and Version 58 of TaggingPresets
- Timestamp:
- 2014-10-29T11:29:12+01:00 (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TaggingPresets
v57 v58 39 39 == Develop a new preset – XML Format description == 40 40 41 The tagging preset description is in a very simple XML format. 42 43 See the comment section in **[source:trunk/data/defaultpresets.xml defaultpresets.xml]** for the **valid format description**.41 The tagging preset description is in a very simple XML format. 42 43 See the **[source:trunk/data/defaultpresets.xml defaultpresets.xml]** for an example covering all possibilities. 44 44 45 45 The full XSD schema is available at the namespace URI (http://josm.openstreetmap.de/tagging-preset-1.0) as well as [source:trunk/data/tagging-preset.xsd the source repository]. … … 67 67 Used to group items in sub menus. ''name'' is required, ''icon'' is optional attribute. 68 68 '''<item>''':: 69 Every item is one annotation set to select from. ''name'' is required, '' icon'' is optional attribute.69 Every item is one annotation set to select from. ''name'' is required, ''type'' is recommended, ''icon'' is optional attribute. 70 70 '''<separator/>''':: 71 71 Insert a line separator into the menu. … … 76 76 Used to group some optional elements of an item. Possibly equivalent to <label text="Optional Attributes:"/> 77 77 '''<space />''':: 78 Add some space (ie a newline) in the preset display. Possibly equivalent to <label text=" "/>78 Add some space (ie a newline) in the preset display. 79 79 '''<link>''':: 80 80 Specify a web link for this feature or to anything else of use. The ''href'' attribute is required. … … 104 104 When specified, only objects of the given type will be changed at all by this tagging preset. Can be "node", "relation", "way", "closedway" or any comma separated combination of them. 105 105 '''icon="iconname"''':: 106 A name o f an icon that is within any classpath in the subdirectory of /images/symbols. You can load plugin-jar's to provide those images as well. The image will be used as icon to display in the selection list and when adding the preset to the toolbar. The icon should be quadratic in size.106 A name or link to an icon. The image will be used as icon to display in the selection list and when adding the preset to the toolbar. The icon should be quadratic in size. See [[Styles#Iconhandling]] how icons can be specified. 107 107 '''key="some_key"''':: 108 108 This specifies the property key that will be modified by the item. … … 146 146 === Format description from XML document (needs to be joined with above texts) === 147 147 148 {{{ 148 149 item: 149 150 name: the text to display … … 157 158 (defaults to "false" for backward-compatibility on external presets) 158 159 159 group: a group of items (same syntax as "item")160 161 link: link to the relating map features website162 href: the URL163 164 160 preset_link: a link to an other preset 165 161 preset_name: the exact name of the preset to link to … … 170 166 icon_size: maximal size of icon (optional). If no value is given, default is 16px 171 167 172 space: empty line173 174 168 optional: optional tags, short for "space" plus "label" plus "space" 175 169 text: the text to display (defaults to "Optional Attributes:") 176 177 separator: separator line in menus178 170 179 171 item_separator: horizontal separator line between items (in window) … … 299 291 - keyvalue!: positive if key and value matches, negative otherwise 300 292 Note that for a match, at least one positive and no negative is required. 293 }}} 301 294 302 295 === Icon handling ===