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.

64 lines
2.6 KiB

  1. type: "overpass"
  2. query:
  3. 15: |
  4. (nwr[historic];nwr[tourism~'^(attraction|artwork)$'];nwr[heritage];)
  5. feature:
  6. pre: |
  7. {% set color = 'red' %}
  8. {% if tags.wikidata %}
  9. {% set color = 'blue' %}
  10. {% elseif tags.wikimedia_commons or tags.image %}
  11. {% set color = 'cyan' %}
  12. {% endif %}
  13. description: |
  14. {% if tags.historic and tags.historic != 'yes' %}
  15. {{ tagTransList('historic', tags.historic) }}
  16. {% if tags.historic == 'memorial' and tags.memorial %}
  17. ({{ tagTransList('memorial', tags.memorial) }})
  18. {% endif %}
  19. {% elseif tags.tourism %}
  20. {{ tagTransList('tourism', tags.tourism) }}
  21. {% elseif tags.heritage %}
  22. {{ keyTrans('heritage') }}
  23. {% endif %}
  24. markerSymbol: "{{ markerPointer({ fillColor: color })|raw }}"
  25. listMarkerSymbol: "{{ markerCircle({ fillColor: color })|raw }}"
  26. filter:
  27. type:
  28. name: "{{ trans('filter:type') }}"
  29. show_default: "true"
  30. query: "nwr[{{ value }}]"
  31. type: "select"
  32. key: "tourism"
  33. values: |
  34. <option value='tourism-artwork' query='nwr[tourism=artwork]'>{{ tagTrans('tourism', 'artwork') }}</option>
  35. <option value='tourism-attraction' query='nwr[tourism=attraction]'>{{ tagTrans('tourism', 'attraction') }}</option>
  36. <option value='historic-memorial' query='nwr[historic=memorial]'>{{ tagTrans('historic', 'memorial') }}</option>
  37. <option value='historic-monument' query='nwr[historic=monument]'>{{ tagTrans('historic', 'monument') }}</option>
  38. <option value='historic-wayside_cross' query='nwr[historic=wayside_cross]'>{{ tagTrans('historic', 'wayside_cross') }}</option>
  39. <option value='historic-wayside_shrine' query='nwr[historic=wayside_shrine]'>{{ tagTrans('historic', 'wayside_shrine') }}</option>
  40. <option value='historic-building' query='nwr[historic=building]'>{{ tagTrans('historic', 'building') }}</option>
  41. <option value='historic-other' query='nwr[historic][historic!~"^(memorial|monument|wayside_cross|wayside_shrine|building)$"]'>{{ keyTrans('historic') }} {{ trans('other') }}</option>
  42. <option value='heritage' query='nwr[heritage]'>{{ keyTrans('heritage') }}</option>
  43. op: "has"
  44. info: |
  45. <table>
  46. <tr>
  47. <td>
  48. {{ markerCircle({ fillColor: 'red' })|raw }}
  49. </td>
  50. <td>No image, wikimedia_commons or wikidata</td>
  51. </tr>
  52. <tr>
  53. <td>
  54. {{ markerCircle({ fillColor: 'cyan' })|raw }}
  55. </td>
  56. <td>image or wikimedia_commons but no wikidata</td>
  57. </tr>
  58. <tr>
  59. <td>
  60. {{ markerCircle({ fillColor: 'blue' })|raw }}
  61. </td>
  62. <td>has wikidata link</td>
  63. </tr>
  64. </table>