From 1c42f7881e88522a9e24bd9b4c9d3393aa95590f Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Mon, 3 May 2021 22:57:30 +0200 Subject: [PATCH] Add shadow --- assets/themes/speelplekken/speelplekken.json | 57 ++++++++++++++------ 1 file changed, 42 insertions(+), 15 deletions(-) diff --git a/assets/themes/speelplekken/speelplekken.json b/assets/themes/speelplekken/speelplekken.json index a6554cd32..6c520a0a9 100644 --- a/assets/themes/speelplekken/speelplekken.json +++ b/assets/themes/speelplekken/speelplekken.json @@ -24,6 +24,17 @@ "socialImage": "", "defaultBackgroundId": "CartoDB.Positron", "layers": [ + { + "id": "shadow", + "source": { + "geoJson": "https://raw.githubusercontent.com/pietervdvn/MapComplete/master/assets/themes/speelplekken/shadow.geojson", + "osmTags": "shadow=yes" + }, + "color": "#444444", + "width": { + "render": "1" + } + }, { "builtin": "play_forest", "override": { @@ -39,39 +50,62 @@ "builtin": "playground", "override": { "icon": "./assets/themes/speelplekken/speeltuin.svg", - "minzoom":14 + "minzoom": 14, + "source": { + "geoJsonLocal": "http://127.0.0.1:8080/speelplekken_{layer}_{z}_{x}_{y}.geojson", + "geoJson": "https://pietervdvn.github.io/speelplekken_cache/speelplekken_{layer}_{z}_{x}_{y}.geojson", + "geoJsonZoomLevel": 14 + } } }, { "builtin": "village_green", "override": { "icon": "./assets/themes/speelplekken/speelweide.svg", - "minzoom":14 + "minzoom": 14, + "source": { + "geoJsonLocal": "http://127.0.0.1:8080/speelplekken_{layer}_{z}_{x}_{y}.geojson", + "geoJson": "https://pietervdvn.github.io/speelplekken_cache/speelplekken_{layer}_{z}_{x}_{y}.geojson", + "geoJsonZoomLevel": 14 + } } }, { "builtin": "grass_in_parks", "override": { "icon": "./assets/themes/speelplekken/speelweide.svg", - "minzoom":14 + "minzoom": 14, + "source": { + "geoJsonLocal": "http://127.0.0.1:8080/speelplekken_{layer}_{z}_{x}_{y}.geojson", + "geoJson": "https://pietervdvn.github.io/speelplekken_cache/speelplekken_{layer}_{z}_{x}_{y}.geojson", + "geoJsonZoomLevel": 14 + } } }, { - "builtin": "sport_pitch", + "builtin": "sport_pitch", "override": { - "minzoom": 15 + "minzoom": 15, + "source": { + "geoJsonLocal": "http://127.0.0.1:8080/speelplekken_{layer}_{z}_{x}_{y}.geojson", + "geoJson": "https://pietervdvn.github.io/speelplekken_cache/speelplekken_{layer}_{z}_{x}_{y}.geojson", + "geoJsonZoomLevel": 14 + } } }, - { "builtin": "slow_roads", "override": { "calculatedTags": [ "_part_of_walking_routes=feat.memberships().map(r => \"\" + r.relation.tags.name + \"\").join(', ')" - ] + ], + "source": { + "geoJsonLocal": "http://127.0.0.1:8080/speelplekken_{layer}_{z}_{x}_{y}.geojson", + "geoJson": "https://pietervdvn.github.io/speelplekken_cache/speelplekken_{layer}_{z}_{x}_{y}.geojson", + "geoJsonZoomLevel": 14 + } } }, - { "id": "walking_routes", "name": { @@ -188,13 +222,6 @@ "maxZoom": 16, "minNeededElements": 100 }, - "overrideAll": { - "source": { - "geoJsonLocal": "http://127.0.0.1:8080/speelplekken_{layer}_{z}_{x}_{y}.geojson", - "geoJson": "https://pietervdvn.github.io/speelplekken_cache/speelplekken_{layer}_{z}_{x}_{y}.geojson", - "geoJsonZoomLevel": 14 - } - }, "roamingRenderings": [ { "render": "Maakt deel uit van {_part_of_walking_routes}",