Main categories of OpenStreetBrowser
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.

88 lines
2.4 KiB

  1. query:
  2. '13': |-
  3. (
  4. node[highway~"^(elevator)$"];
  5. node[information];
  6. node[tourism~"^(viewpoint)$"];
  7. node[man_made~"^(cairn)$"];
  8. nwr[amenity~"^(shelter)$"];
  9. )
  10. '16': |-
  11. (
  12. node[highway~"^(crossing|elevator)$"];
  13. node[information];
  14. node[tourism~"^(viewpoint)$"];
  15. node[man_made~"^(cairn)$"];
  16. nwr[amenity~"^(bench|shelter)$"];
  17. node[leisure~"^(picnic_table)$"];
  18. )
  19. feature:
  20. pre: |-
  21. {% if tags.information %}
  22. {% set key = 'information' %}
  23. {% set value = tags.information %}
  24. {% elseif tags.amenity in [ 'bench', 'shelter' ] %}
  25. {% set key = 'amenity' %}
  26. {% set value = tags.amenity %}
  27. {% elseif tags.leisure in [ 'picnic_table' ] %}
  28. {% set key = 'leisure' %}
  29. {% set value = tags.leisure %}
  30. {% elseif tags.man_made in [ 'cairn' ] %}
  31. {% set key = 'man_made' %}
  32. {% set value = tags.man_made %}
  33. {% elseif tags.tourism in [ 'viewpoint'] %}
  34. {% set key = 'tourism' %}
  35. {% set value = tags.tourism %}
  36. {% else %}
  37. {% set key = 'highway' %}
  38. {% set value = tags.highway %}
  39. {% endif %}
  40. {% set type_data = const[key ~ '=' ~ value] %}
  41. description: |-
  42. {{ tagTrans(key, value) }}
  43. markerSign: |-
  44. {{ type_data.sign|raw }}
  45. priority: |-
  46. {{ type_data.priority }}
  47. filter:
  48. type:
  49. name: |
  50. {{ trans('filter:type') }}
  51. type: select
  52. show_default: true
  53. values: |-
  54. {% for kv, d in const %}
  55. <option value='{{ kv }}' query='nwr[{{ kv }}]'>{{ tagTrans(kv|split('=')[0], kv|split('=')[1]) }}</option>
  56. {% endfor %}
  57. const:
  58. highway=crossing:
  59. priority: 10
  60. sign: <i class='fa fa-bars' aria-hidden='true'></i>
  61. highway=elevator:
  62. priority: 2
  63. sign: <i class='fa fa-caret-square-o-up' aria-hidden='true'></i>
  64. information=guidepost:
  65. priority: 2
  66. sign: <i class='fa fa-map-signs' aria-hidden='true'></i>
  67. information=map:
  68. priority: 2
  69. sign: <i class='fa fa-map' aria-hidden='true'></i>
  70. information=board:
  71. priority: 2
  72. sign: <img data-src='temaki:info_board'>
  73. information=office:
  74. priority: 1
  75. sign: <i class='fa fa-info-circle' aria-hidden='true'></i>
  76. amenity=bench:
  77. priority: 3
  78. sign: <img data-src='temaki:bench'>
  79. leisure=picnic_table:
  80. priority: 3
  81. sign: <img data-src='maki:picnic-site'>
  82. man_made=cairn:
  83. priority: 2
  84. sign: <img data-src='temaki:cairn'>
  85. amenity=shelter:
  86. priority: 1
  87. sign: <img data-src='maki:shelter'>