forked from OpenStreetBrowser/main
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
64 lines
2.0 KiB
64 lines
2.0 KiB
{
|
|
"type": "overpass",
|
|
"query": {
|
|
"14": "(node[sport];way[sport];relation[sport];)"
|
|
},
|
|
"feature": {
|
|
"title": "{{ localizedTag(tags, 'name') |default(localizedTag(tags, 'operator')) |default(tagTransList('sport', tags.sport)) }}",
|
|
"description": "{{ tagTransList('sport', tags.sport) }}",
|
|
"markerSign": [
|
|
"{% set firstSport = tags.sport|split(';')[0] %}",
|
|
"{{ const[firstSport] }}"
|
|
]
|
|
},
|
|
"const": {
|
|
"9pin": "🎳",
|
|
"10pin": "🎳",
|
|
"american_football": "🏈",
|
|
"archery": "🎯",
|
|
"australian_football": "🏈",
|
|
"badminton": "🏸",
|
|
"baseball": "⚾",
|
|
"basketball": "🏀",
|
|
"beachvolleyball": "🏐",
|
|
"billiards": "🎱",
|
|
"bmx": "🚲",
|
|
"canadian_football": "🏈",
|
|
"chess": "♚",
|
|
"cockfighting": "🐓",
|
|
"cricket": "🏏",
|
|
"cycling": "🚲",
|
|
"darts": "🎯",
|
|
"dog_racing": "🐕",
|
|
"equestrian": "🏇",
|
|
"field_hockey": "🏑",
|
|
"golf": "⛳",
|
|
"horse_racing": "🏇",
|
|
"ice_hockey": "🏒",
|
|
"ice_skating": "⛸",
|
|
"model_aerodrome": "✈",
|
|
"motocross": "🏍",
|
|
"motor": "🏎",
|
|
"rugby": "🏉",
|
|
"rugby_league": "🏉",
|
|
"rugby_union": "🏉",
|
|
"running": "🏃",
|
|
"sailing": "⛵",
|
|
"shooting": "🔫",
|
|
"soccer": "⚽",
|
|
"surfing": "🏄",
|
|
"swimming": "🏊",
|
|
"table_tennis": "🏓",
|
|
"tennis": "🎾",
|
|
"volleyball": "🏐",
|
|
"weightlifting": "🏋"
|
|
},
|
|
"filter": {
|
|
"sport": {
|
|
"name": "{{ keyTrans('sport') }}",
|
|
"type": "select",
|
|
"show_default": "true",
|
|
"values": "{% set list = [] %}{% for t, v in const %}<option value=\"{{ t }}\">{% set list = list|merge([ t ]) %}{{ tagTrans('sport', t) }}</option>{% endfor %}<option value='other' query='nwr[sport][sport!~\"^({{ list|join('|') }})$\"]'>{{ trans('other') }}</option>"
|
|
}
|
|
}
|
|
}
|