diff --git a/culture-media.yaml b/culture-media.yaml new file mode 100644 index 0000000..f5eebfe --- /dev/null +++ b/culture-media.yaml @@ -0,0 +1,64 @@ +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 %} + 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> + </table> diff --git a/fixme.yaml b/fixme.yaml new file mode 100644 index 0000000..787234e --- /dev/null +++ b/fixme.yaml @@ -0,0 +1,24 @@ +type: overpass +query: + 15: "nwr[fixme]" +feature: + description: | + {% set found = false %} + {% for k in ['amenity', 'shop', 'telecom', 'waterway', 'craft', 'highway', 'railway', 'aerialway', 'emergency', 'geological', 'man_made', 'natural', 'office', 'power', 'aeroway', 'tourism', 'leisure', 'military', 'landuse', 'barrier', 'route'] if not found %} + {% if attribute(tags, k) and attribute(tags, k) != 'yes' %} + {{ tagTransList(k, attribute(tags, k)) }} + {% set found = true %} + {% endif %} + {% endfor %} + {% if found %}{# nothing #} + {% elseif tags.building and tags.building != 'yes' %} + {{ tagTransList('building', tags.building) }} + {% elseif tags.historic and tags.historic not in ['heritage', 'yes', 'building'] %} + {{ tagTransList('historic', tags.historic) }} + {% elseif tags.building == 'yes' or tags.historic == 'building' %} + {{ keyTrans('building') }} + {% elseif tags.boundary %} + {{ tagTrans('boundary', tags.boundary) }} + {% endif %} + body: | + {{ tags.fixme == 'yes' ? keyTrans('fixme') : tags.fixme }} diff --git a/index.json b/index.json index e2c2824..52cf771 100644 --- a/index.json +++ b/index.json @@ -391,6 +391,18 @@ "id": "xmas" } ] + }, + { + "id": "osm-qa", + "type": "index", + "subCategories": [ + { + "id": "fixme" + }, + { + "id": "culture-media" + } + ] } ] }