From c3b2b841ede71c90dd6edb784ed6a8e3d255dbf2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= Date: Mon, 26 Jun 2017 22:17:00 +0200 Subject: [PATCH] Category: Move rendering dom stuff (header, ...) to category --- children.json | 1 + communication.json | 1 + gastro.json | 1 + index.json | 28 ++++++++++++++++------------ parks.json | 1 + places.json | 1 + shop.json | 1 + trees.json | 1 + 8 files changed, 23 insertions(+), 12 deletions(-) diff --git a/children.json b/children.json index 5ba1b210..82b4c2f9 100644 --- a/children.json +++ b/children.json @@ -1,5 +1,6 @@ { "type": "overpass", + "name:en": "Children", "query": "(node[leisure~'^(playground|summer_camp|indoor_play)$'];way[leisure~'^(playground|summer_camp|indoor_play)$'];relation[leisure~'^(playground|summer_camp|indoor_play)$'];node[shop~'^(baby_goods|toys)$'];way[shop~'^(baby_goods|toys)$'];relation[shop~'^(baby_goods|toys)$'];node[amenity=toilets][diaper];way[amenity=toilets][diaper];relation[amenity=toilets][diaper];node[kids_area];way[kids_area];relation[kids_area];);", "minZoom": 15, "feature": { diff --git a/communication.json b/communication.json index 64cce3f2..a045c7c2 100644 --- a/communication.json +++ b/communication.json @@ -1,5 +1,6 @@ { "type": "overpass", + "name:en": "Communication", "query": { "13": "(node[amenity~'^(post_office|internet_cafe)$'];node[amenity~'^(post_office|internet_cafe)$'];node[amenity~'^(post_office|internet_cafe)$'];);", "16": "(node[amenity~'^(post_office|internet_cafe|post_box|telephone)$'];node[amenity~'^(post_office|internet_cafe)$'];node[amenity~'^(post_office|internet_cafe)$'];);" diff --git a/gastro.json b/gastro.json index b37f6164..9536c991 100644 --- a/gastro.json +++ b/gastro.json @@ -1,5 +1,6 @@ { "type": "overpass", + "name:en": "Gastronomy", "query": "(node[amenity~'^(bar|biergarten|cafe|fast_food|ice_cream|pub|restaurant)$'];way[amenity~'^(bar|biergarten|cafe|fast_food|ice_cream|pub|restaurant)$'];relation[amenity~'^(bar|biergarten|cafe|fast_food|ice_cream|pub|restaurant)$'];);", "minZoom": 16, "feature": { diff --git a/index.json b/index.json index b8e2d8ff..91fa5944 100644 --- a/index.json +++ b/index.json @@ -7,30 +7,34 @@ "name:en": "Leisure, Sport and Shopping", "subCategories": [ { - "id": "gastro", - "name:en": "Gastronomy" + "id": "gastro" }, { - "id": "shop", - "name:en": "Shopping" + "id": "shop" }, { - "id": "children", - "name:en": "Children" + "id": "children" } ] }, { - "id": "trees", - "name:en": "Trees" + "id": "services", + "type": "index", + "name:en": "Services", + "subCategories": [ + { + "id": "communication" + } + ] + }, + { + "id": "trees" }, { - "id": "parks", - "name:en": "Parks" + "id": "parks" }, { - "id": "places", - "name:en": "Places" + "id": "places" } ] } diff --git a/parks.json b/parks.json index 4565215a..3972fb75 100644 --- a/parks.json +++ b/parks.json @@ -1,5 +1,6 @@ { "type": "overpass", + "name:en": "Parks", "query": "(way[leisure=park];relation[leisure=park];)", "minZoom": 14, "feature": { diff --git a/places.json b/places.json index 8bd24922..ba8b953d 100644 --- a/places.json +++ b/places.json @@ -1,5 +1,6 @@ { "type": "overpass", + "name:en": "Places", "query": { "0": "node[place~'^(continent)$']", "4": "node[place~'^(continent|country)$']", diff --git a/shop.json b/shop.json index 0e195d22..3cb03de0 100644 --- a/shop.json +++ b/shop.json @@ -1,5 +1,6 @@ { "type": "overpass", + "name:en": "Shopping", "query": { "14": "(node[shop~'^(mall|department_store)$'];way[shop~'^(mall|department_store)$'];relation[shop~'^(mall|department_store)$'];);", "16": "(node[shop];way[shop];relation[shop];);" diff --git a/trees.json b/trees.json index 93998aff..494a7c00 100644 --- a/trees.json +++ b/trees.json @@ -1,5 +1,6 @@ { "type": "overpass", + "name:en": "Trees", "query": "node[natural=tree];", "minZoom": 17, "feature": {