[josm-dev] Setting multiple tags in preset

André Riedel riedel.andre at gmail.com
Wed Aug 22 12:00:51 BST 2012


Hello Malcolm, you have to use multiselect:
for example:
<multiselect key="cuisine" text="Cuisine"
values="italian;chinese;pizza;burger;greek;german;indian;regional;kebab;turkish;asian;thai;mexican;japanese;french;sandwich;sushi"/>

see http://josm.openstreetmap.de/svn/trunk/data/defaultpresets.xml
>>>
multiselect: list of values from which zero or more can be selected
  key: key to set
  text: fixed label to display
  delimiter: character that separates values (default: semicolon) - this
             will also be used to separate selected values in the tag.
  values: delimiter-separated list of values (delimiter can be escaped
with backslash)
  rows: specify the number of rows to display (default -1)
  display_values: delimiter-separated list of values to be displayed
instead of the
                  database values, order and number must be equal to values
  short_descriptions: delimiter-separated list of texts to be
displayed below each
                      display_value. (Only if it is not possible to describe
                      the entry in 2-3 words.) Instead of a separated list
  instead using values, display_values and short_descriptions, the
following form is also supported:
    <list_entry value="" display_value="' short_description="" icon=""/>
  default: default string to display (defaults to "")
  use_last_as_default: true/false/force (default is "false")
  match: none/key/key!/keyvalue (default is "none", see below for more
information)

2012/8/22 Malcolm Herring <malcolm.herring at btinternet.com>:
> Is there a way to generate more than one key/value pair when a check or
> combo selection is made?



More information about the josm-dev mailing list