Browse Source

Building Start Date: Improvements

pedestrian
parent
commit
c9334d3b78
  1. 12
      buildings-start_date.json

12
buildings-start_date.json

@ -1,8 +1,8 @@
{ {
"type": "overpass", "type": "overpass",
"name": { "name": {
"en": "Buildings",
"de": "Gebäude"
"en": "Building age",
"de": "Gebäudealter"
}, },
"query": { "query": {
"16": [ "16": [
@ -38,7 +38,7 @@
" {% set color = colorInterpolate([ '#ffff00', '#00ff00' ], (value - 2000.0) / 50) %}", " {% set color = colorInterpolate([ '#ffff00', '#00ff00' ], (value - 2000.0) / 50) %}",
" {% endif %}", " {% endif %}",
"{% else %}", "{% else %}",
"{% set color = '#000000' %}",
"{% set color = '#7f7f7f' %}",
"{% endif %}" "{% endif %}"
], ],
"description": [ "description": [
@ -46,8 +46,8 @@
"{{ tags.start_date }}", "{{ tags.start_date }}",
"{% endif %}" "{% endif %}"
], ],
"markerSign": null,
"listMarkerSymbol": "polygon",
"markerSymbol": null,
"listMarkerSymbol": "{{ markerPolygon({ \"fillColor\": color, \"fillOpacity\": 0.8, \"width\": 1, \"color\": \"#000000\" })|raw }}",
"priority": [ "priority": [
"{% set p = 100 %}", "{% set p = 100 %}",
"{% if tags.start_date %}{% set p = p - 20 %}{% endif %}", "{% if tags.start_date %}{% set p = p - 20 %}{% endif %}",
@ -63,7 +63,7 @@
"{{ p }}" "{{ p }}"
], ],
"style": { "style": {
"weight": "1",
"width": "1",
"color": "#000000", "color": "#000000",
"fillColor": "{{ color }}", "fillColor": "{{ color }}",
"fillOpacity": "0.8" "fillOpacity": "0.8"

Loading…
Cancel
Save