forked from MapComplete/MapComplete
Add shadow
This commit is contained in:
parent
ca60f36acf
commit
1c42f7881e
1 changed files with 42 additions and 15 deletions
|
@ -24,6 +24,17 @@
|
||||||
"socialImage": "",
|
"socialImage": "",
|
||||||
"defaultBackgroundId": "CartoDB.Positron",
|
"defaultBackgroundId": "CartoDB.Positron",
|
||||||
"layers": [
|
"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",
|
"builtin": "play_forest",
|
||||||
"override": {
|
"override": {
|
||||||
|
@ -39,39 +50,62 @@
|
||||||
"builtin": "playground",
|
"builtin": "playground",
|
||||||
"override": {
|
"override": {
|
||||||
"icon": "./assets/themes/speelplekken/speeltuin.svg",
|
"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",
|
"builtin": "village_green",
|
||||||
"override": {
|
"override": {
|
||||||
"icon": "./assets/themes/speelplekken/speelweide.svg",
|
"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",
|
"builtin": "grass_in_parks",
|
||||||
"override": {
|
"override": {
|
||||||
"icon": "./assets/themes/speelplekken/speelweide.svg",
|
"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": {
|
"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",
|
"builtin": "slow_roads",
|
||||||
"override": {
|
"override": {
|
||||||
"calculatedTags": [
|
"calculatedTags": [
|
||||||
"_part_of_walking_routes=feat.memberships().map(r => \"<a href='#relation/\"+r.relation.id+\"'>\" + r.relation.tags.name + \"</a>\").join(', ')"
|
"_part_of_walking_routes=feat.memberships().map(r => \"<a href='#relation/\"+r.relation.id+\"'>\" + r.relation.tags.name + \"</a>\").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",
|
"id": "walking_routes",
|
||||||
"name": {
|
"name": {
|
||||||
|
@ -188,13 +222,6 @@
|
||||||
"maxZoom": 16,
|
"maxZoom": 16,
|
||||||
"minNeededElements": 100
|
"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": [
|
"roamingRenderings": [
|
||||||
{
|
{
|
||||||
"render": "Maakt deel uit van {_part_of_walking_routes}",
|
"render": "Maakt deel uit van {_part_of_walking_routes}",
|
||||||
|
|
Loading…
Reference in a new issue