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
75 lines
3.0 KiB
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: |
|
|
<option value='tourism-artwork' query='nwr[tourism=artwork]'>{{ tagTrans('tourism', 'artwork') }}</option>
|
|
<option value='tourism-attraction' query='nwr[tourism=attraction]'>{{ tagTrans('tourism', 'attraction') }}</option>
|
|
<option value='historic-memorial' query='nwr[historic=memorial]'>{{ tagTrans('historic', 'memorial') }}</option>
|
|
<option value='historic-monument' query='nwr[historic=monument]'>{{ tagTrans('historic', 'monument') }}</option>
|
|
<option value='historic-wayside_cross' query='nwr[historic=wayside_cross]'>{{ tagTrans('historic', 'wayside_cross') }}</option>
|
|
<option value='historic-wayside_shrine' query='nwr[historic=wayside_shrine]'>{{ tagTrans('historic', 'wayside_shrine') }}</option>
|
|
<option value='historic-building' query='nwr[historic=building]'>{{ tagTrans('historic', 'building') }}</option>
|
|
<option value='historic-other' query='nwr[historic][historic!~"^(memorial|monument|wayside_cross|wayside_shrine|building)$"]'>{{ keyTrans('historic') }} {{ trans('other') }}</option>
|
|
<option value='heritage' query='nwr[heritage]'>{{ keyTrans('heritage') }}</option>
|
|
op: "has"
|
|
info: |
|
|
<table>
|
|
<tr>
|
|
<td>
|
|
{{ markerCircle({ fillColor: 'red' })|raw }}
|
|
</td>
|
|
<td>No image, wikimedia_commons or wikidata</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
{{ markerCircle({ fillColor: 'cyan' })|raw }}
|
|
</td>
|
|
<td>image or wikimedia_commons but no wikidata</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
{{ markerCircle({ fillColor: 'blue' })|raw }}
|
|
</td>
|
|
<td>has wikidata link</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
{{ markerCircle({ fillColor: 'magenta' })|raw }}
|
|
</td>
|
|
<td>wikidata points to a human, should most likely be 'subject:wikidata'</td>
|
|
</tr>
|
|
</table>
|