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.

93 lines
4.1 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. {% set str = 'No image, wikimedia_commons or wikidata' %}
  9. {% if tags.wikidata %}
  10. {% set color = 'blue' %}
  11. {% set str = 'has wikidata tag' %}
  12. {% set wikidata = tags.wikidata|wikidataEntity %}
  13. {% if wikidata.claims.P31[0].mainsnak.datavalue.value.id in ['Q5'] %}
  14. {% set color = 'magenta' %}
  15. {% set str = "wikidata points to a human, should most likely be 'subject:wikidata'" %}
  16. {% endif %}
  17. {% elseif tags.wikimedia_commons or tags.image %}
  18. {% set color = 'cyan' %}
  19. {% set str = tags.wikimedia_commons ? 'has wikimedia_commons tag' : 'has image tag' %}
  20. {% endif %}
  21. body: |
  22. {{ str }}
  23. style:
  24. color: |
  25. {{ color }}
  26. description: |
  27. {% if tags.historic and tags.historic != 'yes' %}
  28. {{ tagTransList('historic', tags.historic) }}
  29. {% if tags.historic == 'memorial' and tags.memorial %}
  30. ({{ tagTransList('memorial', tags.memorial) }})
  31. {% endif %}
  32. {% elseif tags.tourism %}
  33. {{ tagTransList('tourism', tags.tourism) }}
  34. {% elseif tags.heritage %}
  35. {{ keyTrans('heritage') }}
  36. {% endif %}
  37. markerSymbol: "{{ markerPointer({ fillColor: color })|raw }}"
  38. listMarkerSymbol: "{{ markerCircle({ fillColor: color })|raw }}"
  39. filter:
  40. type:
  41. name: "{{ trans('filter:type') }}"
  42. show_default: "true"
  43. query: "nwr[{{ value }}]"
  44. type: "select"
  45. key: "tourism"
  46. values: |
  47. <option value='tourism-artwork' query='nwr[tourism=artwork]'>{{ tagTrans('tourism', 'artwork') }}</option>
  48. <option value='tourism-attraction' query='nwr[tourism=attraction]'>{{ tagTrans('tourism', 'attraction') }}</option>
  49. <option value='historic-memorial' query='nwr[historic=memorial]'>{{ tagTrans('historic', 'memorial') }}</option>
  50. <option value='historic-monument' query='nwr[historic=monument]'>{{ tagTrans('historic', 'monument') }}</option>
  51. <option value='historic-wayside_cross' query='nwr[historic=wayside_cross]'>{{ tagTrans('historic', 'wayside_cross') }}</option>
  52. <option value='historic-wayside_shrine' query='nwr[historic=wayside_shrine]'>{{ tagTrans('historic', 'wayside_shrine') }}</option>
  53. <option value='historic-building' query='nwr[historic=building]'>{{ tagTrans('historic', 'building') }}</option>
  54. <option value='historic-other' query='nwr[historic][historic!~"^(memorial|monument|wayside_cross|wayside_shrine|building)$"]'>{{ keyTrans('historic') }} {{ trans('other') }}</option>
  55. <option value='heritage' query='nwr[heritage]'>{{ keyTrans('heritage') }}</option>
  56. op: "has"
  57. info: |
  58. <table>
  59. <tr>
  60. <td>
  61. {{ markerCircle({ fillColor: 'red' })|raw }}
  62. </td>
  63. <td>No image, wikimedia_commons or wikidata</td>
  64. </tr>
  65. <tr>
  66. <td>
  67. {{ markerCircle({ fillColor: 'magenta' })|raw }}
  68. </td>
  69. <td>wikidata tag points to a human, should most likely be 'subject:wikidata'</td>
  70. </tr>
  71. <tr>
  72. <td>
  73. {{ markerCircle({ fillColor: 'cyan' })|raw }}
  74. </td>
  75. <td>image or wikimedia_commons tag but no wikidata</td>
  76. </tr>
  77. <tr>
  78. <td>
  79. {{ markerCircle({ fillColor: 'blue' })|raw }}
  80. </td>
  81. <td>has wikidata tag</td>
  82. </tr>
  83. </table>
  84. This category lists artwork, memorials, historic and heritage protected objects. These should have an <a target="_blank" href="https://wiki.openstreetmap.org/wiki/Key:image">image</a> or <a target="_blank" href="https://wiki.openstreetmap.org/wiki/Key:wikimedia_commons">wikimedia_commons</a> tag, or (even better) a <a target="_blank" href="https://wiki.openstreetmap.org/wiki/Key:wikidata">wikidata</a> tag pointing to the object's entry.<br>
  85. Memorials erroneously often have a wikidata (and wikipedia) tag of the person/event, which should be changed to <a target="_blank" href="https://wiki.openstreetmap.org/wiki/Key:wikidata#Secondary_Wikidata_links">subject:wikidata</a> resp. <a target="_blank" href="https://wiki.openstreetmap.org/wiki/Key:wikipedia#Secondary_Wikipedia_links">subject:wikipedia</a>".