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.

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