Changes between Version 182 and Version 183 of TaggingPresets
- Timestamp:
- 2021-05-04T22:31:40+02:00 (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TaggingPresets
v182 v183 70 70 Used to group items in sub menus. `name` is required, `icon` is optional attribute. 71 71 <item>:: 72 Every item is one annotation set to select from. `name` is required, `type` and `preset_name_label` are recommended, `icon` and`name_template` are optional attributes.72 Every item is one annotation set to select from. `name` is required, `type` and `preset_name_label` are recommended, `icon`, `name_template` and `match_expression` are optional attributes. 73 73 <separator />:: 74 74 Insert a line separator into the menu. … … 185 185 * `keyvalue!`: positive if key and value matches, negative otherwise \\ 186 186 **Note**: For a match, at least one positive and no negative is required. Default is `"keyvalue!"` for `<key>` and `"none"` for `<text />`, `<combo />`, `<multiselect />` and `<check />`. 187 match_expression="":: 188 Additional criteria for matching primitives. Specified in [wikitr:/Help/Action/Search JOSM search] syntax. ''(since r17662)'' \\187 match_expression="an expression":: 188 additional criteria for matching primitives, specified in [wikitr:/Help/Action/Search JOSM search] syntax. ''(since r17662)'' \\ 189 189 For instance, a preset with `match_expression="foo=bar"` requires OSM objects to have the tag `foo=bar`. You may want to use the `match_expression=""` to exclude certain OSM objects, e.g. when a more specific preset is present. 190 190 id="unique_identifier":: … … 199 199 How often can a role occur (if not given unlimited number is assumed) 200 200 member_expression="an expression":: 201 an expression (cf.searchdialog)for objects of this role201 an expression, in [wikitr:/Help/Action/Search JOSM search] syntax, for objects of this role 202 202 regexp="true":: 203 203 set to `"true"` if the key of a role is a regular expression. This allows variable roles e.g. `<role key="level_-?\d+" text="Building level" regexp="true" requisite="optional" type="relation" />` allows the roles `level_0`, `level_1`,...
