Browse Source

fixme: display value of fixme or other tags as details

pedestrian
parent
commit
4260c2ad49
  1. 16
      fixme.yaml

16
fixme.yaml

@ -2,6 +2,20 @@ type: overpass
query: query:
14: nwr[~"^fixme(:.*|)$"~".",i] 14: nwr[~"^fixme(:.*|)$"~".",i]
feature: feature:
pre: |
{% set fixme = tags.fixme %}
{% set category = null %}
{% if not fixme %}
{% for k, v in tags %}
{% set m = k|matches('^fixme(:(.*))?$', 'i') %}
{% if m %}
{% set fixme = v %}
{% endif %}
{% endfor %}
{% endif %}
details: |
{{ fixme }}
description: | description: |
{% set found = false %} {% 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 %} {% 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 %}
@ -21,4 +35,4 @@ feature:
{{ tagTrans('boundary', tags.boundary) }} {{ tagTrans('boundary', tags.boundary) }}
{% endif %} {% endif %}
body: | body: |
{{ tags.fixme == 'yes' ? keyTrans('fixme') : tags.fixme }}
{{ fixme == 'yes' ? keyTrans('fixme') : fixme }}
Loading…
Cancel
Save