Main categories of OpenStreetBrowser with public transport zoom level
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

6 years ago
  1. {
  2. "type": "overpass",
  3. "query": {
  4. "14": "(node[sport];way[sport];relation[sport];)"
  5. },
  6. "feature": {
  7. "title": "{{ localizedTag(tags, 'name') |default(localizedTag(tags, 'operator')) |default(tagTransList('sport', tags.sport)) }}",
  8. "description": "{{ tagTransList('sport', tags.sport) }}",
  9. "markerSign": [
  10. "{% set firstSport = tags.sport|split(';')[0] %}",
  11. "{{ const[firstSport] }}"
  12. ]
  13. },
  14. "const": {
  15. "9pin": "🎳",
  16. "10pin": "🎳",
  17. "american_football": "🏈",
  18. "archery": "🎯",
  19. "australian_football": "🏈",
  20. "badminton": "🏸",
  21. "baseball": "⚾",
  22. "basketball": "🏀",
  23. "beachvolleyball": "🏐",
  24. "billiards": "🎱",
  25. "bmx": "🚲",
  26. "canadian_football": "🏈",
  27. "chess": "♚",
  28. "cockfighting": "🐓",
  29. "cricket": "🏏",
  30. "cycling": "🚲",
  31. "darts": "🎯",
  32. "dog_racing": "🐕",
  33. "equestrian": "🏇",
  34. "field_hockey": "🏑",
  35. "golf": "⛳",
  36. "horse_racing": "🏇",
  37. "ice_hockey": "🏒",
  38. "ice_skating": "⛸",
  39. "model_aerodrome": "✈",
  40. "motocross": "🏍",
  41. "motor": "🏎",
  42. "rugby": "🏉",
  43. "rugby_league": "🏉",
  44. "rugby_union": "🏉",
  45. "running": "🏃",
  46. "sailing": "⛵",
  47. "shooting": "🔫",
  48. "soccer": "⚽",
  49. "surfing": "🏄",
  50. "swimming": "🏊",
  51. "table_tennis": "🏓",
  52. "tennis": "🎾",
  53. "volleyball": "🏐",
  54. "weightlifting": "🏋"
  55. },
  56. "filter": {
  57. "sport": {
  58. "name": "{{ keyTrans('sport') }}",
  59. "type": "select",
  60. "show_default": "true",
  61. "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>"
  62. }
  63. }
  64. }