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.

78 lines
2.0 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.picnic_table%}
  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[value] %}
  41. description: |-
  42. {{ tagTrans(key, value) }}
  43. markerSign: |-
  44. {{ type_data.sign|raw }}
  45. priority: |-
  46. {{ type_data.priority }}
  47. const:
  48. crossing:
  49. priority: 10
  50. sign: <i class='fa fa-bars' aria-hidden='true'></i>
  51. elevator:
  52. priority: 2
  53. sign: <i class='fa fa-caret-square-o-up' aria-hidden='true'></i>
  54. guidepost:
  55. priority: 2
  56. sign: <i class='fa fa-map-signs' aria-hidden='true'></i>
  57. map:
  58. priority: 2
  59. sign: <i class='fa fa-map' aria-hidden='true'></i>
  60. board:
  61. priority: 2
  62. sign: ''
  63. office:
  64. priority: 1
  65. sign: <i class='fa fa-info-circle' aria-hidden='true'></i>
  66. bench:
  67. priority: 3
  68. sign: <img data-src='temaki:bench'>
  69. picnic_table:
  70. priority: 3
  71. sign: <img data-src='maki:picnic-site'>
  72. cairn:
  73. priority: 2
  74. sign: ''
  75. shelter:
  76. priority: 1
  77. sign: