From 076e03bff11d2bf82b6202e2a3fc12a86b9f62b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= Date: Fri, 23 Jun 2017 21:28:02 +0200 Subject: [PATCH] Category places: zoom level dependend queries --- places.json | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/places.json b/places.json index 816a5d1..b921c99 100644 --- a/places.json +++ b/places.json @@ -1,10 +1,19 @@ { "type": "category", - "query": "node[place]", - "minZoom": 14, + "query": { + "0": "node[place~'^(continent)$']", + "4": "node[place~'^(continent|country)$']", + "6": "node[place~'^(country|city)$']", + "8": "node[place~'^(country|city|state)$']", + "11": "node[place~'^(city|state|region|town|village)$']", + "13": "node[place~'^(city|state|region|town|village|suburb|hamlet|quarter)$']", + "15": "node[place~'^(city|region|town|village|suburb|hamlet|quarter)$']", + "16": "(node[place~'^(region|town|village|suburb|hamlet|quarter|islet|isolated_dwelling|neighbourhood|farm)$'];way[place~'^(isolated_dwelling|neighbourhood|farm)$'];relation[place~'^(isolated_dwelling|neighbourhood|farm)$'];);" + }, + "minZoom": 0, "feature": { "title": "{% set loc_name = localizedTag(tags, 'name') %}{{ loc_name }}{% if loc_name != tags.name %} ({{ tags.name }}){% endif %}", - "body": "{{ tagTrans('place', tags.place) }}", + "body": "{{ tagTrans('place', tags.place) }}\n{% if tags.population %}
{{ tagTrans('population') }}: {{ tags.population }}{% endif %} \n", "description": "{{ tagTrans('place', tags.place) }}" } }