{ "type": "overpass", "name": { "de": "Gebäudearten", "en": "Building types" }, "query": { "16": [ "(", " way[building][building!=no];", " relation[building][building!=no];", ")" ] }, "feature": { "pre": [ "{% set type = tags.building|split(';')[0] %}", "{% set color = const.other.color %}", "{% for cat, data in const %}", " {% if type in data.types %}", " {% set color = data.color %}", " {% endif %}", "{% endfor %}" ], "description": [ "{% if tags.building == 'yes' %}", "{{ keyTrans('building') }}", "{% else %}", "{{ tagTransList('building', tags.building) }}", "{% endif %}", "{% if tags.building == 'construction' and tags.construction %}", "({{ tagTransList('building', tags.construction) }})", "{% endif %}" ], "priority": [ "{% set p = 100 %}", "{% if tags.name %}{% set p = p - 10 %}{% endif %}", "{% if tags.amenity %}{% set p = p - 1 %}{% endif %}", "{% if tags.historic %}{% set p = p - 1 %}{% endif %}", "{% if tags.culture %}{% set p = p - 1 %}{% endif %}", "{% if tags.highway %}{% set p = p - 1 %}{% endif %}", "{% if tags.railway %}{% set p = p - 1 %}{% endif %}", "{% if tags.aeroway %}{% set p = p - 1 %}{% endif %}", "{% if tags.amenity %}{% set p = p - 1 %}{% endif %}", "{% if tags.tourism %}{% set p = p - 1 %}{% endif %}", "{{ p }}" ], "markerSymbol": null, "listMarkerSymbol": "{{ markerPolygon({\"fillColor\": color, \"fillOpacity\": 0.8, \"width\": 1, \"color\": \"#000000\" })|raw }}", "style": { "width": "1", "color": "#000000", "fillColor": "{{ color }}", "fillOpacity": "0.8" } }, "info": [ "
{{ markerPolygon({ \"fillColor\": data.color, \"fillOpacity\": \"0.8\", \"width\": 1, \"color\": \"#000000\" })|raw }} | ", "{{ cat }} | ", "