From a1f8ed7dc2868b96a73a325e0d16a6b54c9e1475 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= <skunk@xover.mud.at> Date: Tue, 2 Jun 2020 09:12:11 +0200 Subject: [PATCH] Developable Areas: colors, map key --- developable_areas.json | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/developable_areas.json b/developable_areas.json index 8f67600..6b92dcc 100644 --- a/developable_areas.json +++ b/developable_areas.json @@ -15,6 +15,25 @@ "{% set key = 'landuse' %}", "{% set value = tags.landuse %}" ], + "style": { + "color": "{{ const[value] }}" + }, + "markerSymbol": "{{ markerPointer({fillColor:const[value]})|raw }}", + "listMarkerSymbol": "{{ markerCircle({fillColor:const[value]})|raw }}", "description": "{{ tagTrans(key, value) }}" + }, + "info": [ + "<table>", + "{% for value, color in const %}", + " <tr>", + " <td>{{ markerCircle({fillColor: color})|raw }}</td>", + " <td>{{ tagTrans('landuse', value) }}</td>", + " </tr>", + "{% endfor %}", + "</table>" + ], + "const": { + "brownfield": "#c3701f", + "greenfield": "#009800" } }