Browse Source

leisure: add icons (unfin)

cycle_infrastructure
parent
commit
26a5cefc45
  1. 95
      leisure.json

95
leisure.json

@ -40,7 +40,8 @@
" - {{ tagTransList('sport', tags.sport) }}", " - {{ tagTransList('sport', tags.sport) }}",
" {% endif %}", " {% endif %}",
"{% endif %}" "{% endif %}"
]
],
"markerSign": "{{ const[tags.leisure]|raw }}"
}, },
"filter": { "filter": {
"access": { "access": {
@ -76,54 +77,54 @@
"leisure": { "leisure": {
"name": "{{ trans('filter:type') }}", "name": "{{ trans('filter:type') }}",
"type": "select", "type": "select",
"values": "{% set list = [] %}{% for k in const %}<option value=\"{{ k }}\">{% set list = list|merge([ k ]) %}{{ tagTrans('leisure', k) }}</option>{% endfor %}<option weight='1' value='other' query='nwr[leisure][leisure!~\"^(|.*;)({{ list|join('|') }})(|;.*)$\"]'>{{ trans('other') }}</option>",
"values": "{% set list = [] %}{% for k, v in const %}<option value=\"{{ k }}\">{% set list = list|merge([ k ]) %}{{ tagTrans('leisure', k) }}</option>{% endfor %}<option weight='1' value='other' query='nwr[leisure][leisure!~\"^(|.*;)({{ list|join('|') }})(|;.*)$\"]'>{{ trans('other') }}</option>",
"sort": "natsort", "sort": "natsort",
"op": "has" "op": "has"
} }
}, },
"const": [
"adult_gaming_centre",
"amusement_arcade",
"bandstand",
"beach_resort",
"bird_hide",
"bleachers",
"bowling_alley",
"common",
"dance",
"disc_golf_course",
"dog_park",
"escape_game",
"firepit",
"fishing",
"fitness_centre",
"fitness_station",
"garden",
"golf_course",
"hackerspace",
"horse_riding",
"ice_rink",
"indoor_play",
"marina",
"miniature_golf",
"nature_reserve",
"outdoor_seating",
"park",
"picnic_table",
"pitch",
"playground",
"sauna",
"slipway",
"sport",
"sports_cenre",
"sports_hall",
"stadium",
"summer_camp",
"swimming_area",
"swimming_pool",
"track",
"trampoline_park",
"water_park",
"wildlife_hide"
]
"const": {
"adult_gaming_centre": "",
"amusement_arcade": "",
"bandstand": ":",
"beach_resort": "",
"bird_hide": "",
"bleachers": "",
"bowling_alley": "",
"common": "",
"dance": "",
"disc_golf_course": "",
"dog_park": "",
"escape_game": "",
"firepit": "",
"fishing": "",
"fitness_centre": "",
"fitness_station": "",
"garden": "",
"golf_course": "",
"hackerspace": "",
"horse_riding": "",
"ice_rink": "",
"indoor_play": "",
"marina": "",
"miniature_golf": "",
"nature_reserve": "",
"outdoor_seating": "",
"park": "P",
"picnic_table": "<img data-src='maki:picnic-site'>",
"pitch": "",
"playground": "⛹",
"sauna": "",
"slipway": "",
"sport": "",
"sports_cenre": "",
"sports_hall": "",
"stadium": "",
"summer_camp": "",
"swimming_area": "",
"swimming_pool": "",
"track": "",
"trampoline_park": "",
"water_park": "",
"wildlife_hide": ""
}
} }
Loading…
Cancel
Save