From 2e61c5ea091ca68878c6b438cfa075ece710d633 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= Date: Sun, 2 Jul 2017 10:33:13 +0200 Subject: [PATCH] Include more objects in leisure category --- leisure.json | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/leisure.json b/leisure.json index 4565215..f3640b3 100644 --- a/leisure.json +++ b/leisure.json @@ -1,6 +1,9 @@ { "type": "overpass", - "query": "(way[leisure=park];relation[leisure=park];)", + "query": { + "14": "(way[leisure~'^(park|common)$'];relation[leisure='^(park|common)$'];)", + "16": "(node[amenity~'^(bench|swimming_pool)$'];way[leisure~'^(park|common|nature_reserve|swimming_pool)$'];relation[leisure='^(park|common|nature_reserve|swimming_pool)$'];)" + }, "minZoom": 14, "feature": { "style": { @@ -8,6 +11,8 @@ "fillColor": "green", "fillOpacity": 0.2, "weight": 2 - } + }, + "body": "{% if tags.leisure %}{{ tagTrans('leisure', tags.leisure ) }}{% elseif tags.amenity %}{{ tagTrans('amenity', tags.amenity ) }}{% endif %}", + "description": "{% if tags.leisure %}{{ tagTrans('leisure', tags.leisure ) }}{% elseif tags.amenity %}{{ tagTrans('amenity', tags.amenity ) }}{% endif %}" } }