From 48fd7f455d16737835fa717c7d1397b2c902ce5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= Date: Fri, 26 Jan 2018 18:48:48 +0100 Subject: [PATCH] Public: improvements, icons --- public.json | 37 +++++++++++++++++++++++++++++++++---- 1 file changed, 33 insertions(+), 4 deletions(-) diff --git a/public.json b/public.json index c7b7ad26..b13b8ae2 100644 --- a/public.json +++ b/public.json @@ -16,13 +16,42 @@ "uk": "Громадські місця" }, "query": { - "12": "(node[amenity~'^(court_house|embassy|public_building|townhall)$'];way[amenity~'^(court_house|embassy|public_building|townhall)$'];relation[amenity~'^(court_house|embassy|public_building|townhall)$'];node[amenity=recycling][recyling_type=centre];way[amenity=recycling][recyling_type=centre];relation[amenity=recycling][recyling_type=centre];);", - "16": "(node[amenity~'^(court_house|embassy|public_building|townhall|clock|drinking_water|recycling)$'];way[amenity~'^(court_house|embassy|public_building|townhall|recycling)$'];relation[amenity~'^(court_house|embassy|public_building|townhall|recycling)$'];node[drinking_water]);" + "12": [ + "(", + "node[amenity~'^(courthouse|embassy|public_building|townhall)$'];", + "way[amenity~'^(courthouse|embassy|public_building|townhall)$'];", + "relation[amenity~'^(courthouse|embassy|public_building|townhall)$'];", + "node[amenity=recycling][recyling_type=centre];", + "way[amenity=recycling][recyling_type=centre];", + "relation[amenity=recycling][recyling_type=centre];", + ");" + ], + "16": [ + "(", + "node[amenity~'^(courthouse|embassy|public_building|townhall|clock|drinking_water|recycling)$'];", + "way[amenity~'^(courthouse|embassy|public_building|townhall|recycling)$'];", + "relation[amenity~'^(courthouse|embassy|public_building|townhall|recycling)$'];", + "node[drinking_water];", + ");" + ] }, "feature": { "title": "{{ tags.name|default(tags.operator)|default(tagTrans('amenity', tags.amenity)) }}", "description": "{{ tagTrans('amenity', tags.amenity) }}", "body": "{% if tags.operator %}{{ keyTrans('operator') }}: {{ tags.operator }}
{% endif %}", - "markerSign": "{% if tags.amenity=='post_office' %}🏤{% elseif tags.amenity=='post_box'%}📮{% elseif tags.amenity=='internet_cafe' %}💻{% elseif tags.amenity=='telephone' %}✆{% endif %}" + "markerSign": [ + "{% if const[tags.amenity] %}", + "{{ attribute(const, tags.amenity)|raw }}", + "{% endif %}" + ] + }, + "const": { + "courthouse": "⚖", + "clock": "", + "drinking_water": "", + "embassy": "", + "public_building": "", + "recycling": "", + "townhall": "" } -} +} \ No newline at end of file