Changeset 7118 in josm for trunk/data


Ignore:
Timestamp:
2014-05-13T13:39:24+02:00 (11 years ago)
Author:
simon04
Message:

fix #9901 - Presets: add support for alternative_autocomplete_keys, esp. auto-complete addr:street also from name

Location:
trunk/data
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/data/defaultpresets.xml

    r7116 r7118  
    5959  match: none/key/key!/keyvalue (default is "none", see below for more information)
    6060  length: length of input box (number of characters allowed)
     61  alternative_autocomplete_keys: comma separated list of alternative keys to use for autocompletion
    6162
    6263combo: combo box, with multiple choices and possible to enter free form text
     
    66826683            <text key="addr:housenumber" text="House number" match="key" auto_increment="-2,-1,+1,+2" />
    66836684            <optional>
    6684                 <text key="addr:housename" text="House name" match="key" />
    6685                 <text key="addr:street" text="Street name" use_last_as_default="force" match="key" />
     6685                <text key="addr:housename" text="House name" match="key" alternative_autocomplete_keys="name" />
     6686                <text key="addr:street" text="Street name" use_last_as_default="force" match="key" alternative_autocomplete_keys="name" />
    66866687                <text key="addr:city" text="City name" use_last_as_default="force" match="key" />
    66876688                <text key="addr:postcode" text="Post code" use_last_as_default="force" match="key" />
  • trunk/data/tagging-preset.xsd

    r6824 r7118  
    157157                <attribute name="match" type="tns:match" />
    158158                <attribute name="length" type="positiveInteger" />
     159                <attribute name="alternative_autocomplete_keys" type="string" />
    159160
    160161                <attribute name="type" use="prohibited" />
Note: See TracChangeset for help on using the changeset viewer.