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.

75 lines
3.0 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. {% if tags.wikidata %}
  14. {% set wikidata = tags.wikidata|wikidataEntity %}
  15. {% if wikidata.claims.P31[0].mainsnak.datavalue.value.id in ['Q5'] %}{% set color = 'magenta' %}{% endif %}
  16. {% endif %}
  17. description: |
  18. {% if tags.historic and tags.historic != 'yes' %}
  19. {{ tagTransList('historic', tags.historic) }}
  20. {% if tags.historic == 'memorial' and tags.memorial %}
  21. ({{ tagTransList('memorial', tags.memorial) }})
  22. {% endif %}
  23. {% elseif tags.tourism %}
  24. {{ tagTransList('tourism', tags.tourism) }}
  25. {% elseif tags.heritage %}
  26. {{ keyTrans('heritage') }}
  27. {% endif %}
  28. markerSymbol: "{{ markerPointer({ fillColor: color })|raw }}"
  29. listMarkerSymbol: "{{ markerCircle({ fillColor: color })|raw }}"
  30. filter:
  31. type:
  32. name: "{{ trans('filter:type') }}"
  33. show_default: "true"
  34. query: "nwr[{{ value }}]"
  35. type: "select"
  36. key: "tourism"
  37. values: |
  38. <option value='tourism-artwork' query='nwr[tourism=artwork]'>{{ tagTrans('tourism', 'artwork') }}</option>
  39. <option value='tourism-attraction' query='nwr[tourism=attraction]'>{{ tagTrans('tourism', 'attraction') }}</option>
  40. <option value='historic-memorial' query='nwr[historic=memorial]'>{{ tagTrans('historic', 'memorial') }}</option>
  41. <option value='historic-monument' query='nwr[historic=monument]'>{{ tagTrans('historic', 'monument') }}</option>
  42. <option value='historic-wayside_cross' query='nwr[historic=wayside_cross]'>{{ tagTrans('historic', 'wayside_cross') }}</option>
  43. <option value='historic-wayside_shrine' query='nwr[historic=wayside_shrine]'>{{ tagTrans('historic', 'wayside_shrine') }}</option>
  44. <option value='historic-building' query='nwr[historic=building]'>{{ tagTrans('historic', 'building') }}</option>
  45. <option value='historic-other' query='nwr[historic][historic!~"^(memorial|monument|wayside_cross|wayside_shrine|building)$"]'>{{ keyTrans('historic') }} {{ trans('other') }}</option>
  46. <option value='heritage' query='nwr[heritage]'>{{ keyTrans('heritage') }}</option>
  47. op: "has"
  48. info: |
  49. <table>
  50. <tr>
  51. <td>
  52. {{ markerCircle({ fillColor: 'red' })|raw }}
  53. </td>
  54. <td>No image, wikimedia_commons or wikidata</td>
  55. </tr>
  56. <tr>
  57. <td>
  58. {{ markerCircle({ fillColor: 'cyan' })|raw }}
  59. </td>
  60. <td>image or wikimedia_commons but no wikidata</td>
  61. </tr>
  62. <tr>
  63. <td>
  64. {{ markerCircle({ fillColor: 'blue' })|raw }}
  65. </td>
  66. <td>has wikidata link</td>
  67. </tr>
  68. <tr>
  69. <td>
  70. {{ markerCircle({ fillColor: 'magenta' })|raw }}
  71. </td>
  72. <td>wikidata points to a human, should most likely be 'subject:wikidata'</td>
  73. </tr>
  74. </table>