type: "overpass" query: 15: | (nwr[historic];nwr[tourism~'^(attraction|artwork)$'];nwr[heritage];) feature: pre: | {% set color = 'red' %} {% if tags.wikidata %} {% set color = 'blue' %} {% elseif tags.wikimedia_commons or tags.image %} {% set color = 'cyan' %} {% endif %} {% if tags.wikidata %} {% set wikidata = tags.wikidata|wikidataEntity %} {% if wikidata.claims.P31[0].mainsnak.datavalue.value.id in ['Q5'] %}{% set color = 'magenta' %}{% endif %} {% endif %} description: | {% if tags.historic and tags.historic != 'yes' %} {{ tagTransList('historic', tags.historic) }} {% if tags.historic == 'memorial' and tags.memorial %} ({{ tagTransList('memorial', tags.memorial) }}) {% endif %} {% elseif tags.tourism %} {{ tagTransList('tourism', tags.tourism) }} {% elseif tags.heritage %} {{ keyTrans('heritage') }} {% endif %} markerSymbol: "{{ markerPointer({ fillColor: color })|raw }}" listMarkerSymbol: "{{ markerCircle({ fillColor: color })|raw }}" filter: type: name: "{{ trans('filter:type') }}" show_default: "true" query: "nwr[{{ value }}]" type: "select" key: "tourism" values: | op: "has" info: |
{{ markerCircle({ fillColor: 'red' })|raw }} No image, wikimedia_commons or wikidata
{{ markerCircle({ fillColor: 'cyan' })|raw }} image or wikimedia_commons but no wikidata
{{ markerCircle({ fillColor: 'blue' })|raw }} has wikidata link
{{ markerCircle({ fillColor: 'magenta' })|raw }} wikidata points to a human, should most likely be 'subject:wikidata'