only dutch layers for natuurpunt

This commit is contained in:
Ward 2021-07-28 14:52:42 +02:00
parent 40717af859
commit 57e43a2fbb
2 changed files with 469 additions and 502 deletions

View file

@ -1,14 +1,13 @@
{ {
"id": "watermill", "id": "watermill",
"name": { "name": {
"nl": "watermolens" "nl": "Watermolens",
"en": "Watermill"
}, },
"minzoom": 12, "minzoom": 12,
"source": { "source": {
"osmTags": { "osmTags": {
"and": [ "and": ["man_made=watermill"]
"man_made=watermill"
]
} }
}, },
"title": { "title": {
@ -18,9 +17,7 @@
"mappings": [ "mappings": [
{ {
"if": { "if": {
"and": [ "and": ["name:nl~*"]
"name:nl~*"
]
}, },
"then": { "then": {
"nl": "{name:nl}" "nl": "{name:nl}"
@ -28,9 +25,7 @@
}, },
{ {
"if": { "if": {
"and": [ "and": ["name~*"]
"name~*"
]
}, },
"then": { "then": {
"nl": "{name}" "nl": "{name}"
@ -57,10 +52,7 @@
"mappings": [ "mappings": [
{ {
"if": { "if": {
"and": [ "and": ["access=yes", "fee="]
"access=yes",
"fee="
]
}, },
"then": { "then": {
"nl": "Vrij toegankelijk" "nl": "Vrij toegankelijk"
@ -68,10 +60,7 @@
}, },
{ {
"if": { "if": {
"and": [ "and": ["access=no", "fee="]
"access=no",
"fee="
]
}, },
"then": { "then": {
"nl": "Niet toegankelijk" "nl": "Niet toegankelijk"
@ -79,10 +68,7 @@
}, },
{ {
"if": { "if": {
"and": [ "and": ["access=private", "fee="]
"access=private",
"fee="
]
}, },
"then": { "then": {
"nl": "Niet toegankelijk, want privégebied" "nl": "Niet toegankelijk, want privégebied"
@ -90,10 +76,7 @@
}, },
{ {
"if": { "if": {
"and": [ "and": ["access=permissive", "fee="]
"access=permissive",
"fee="
]
}, },
"then": { "then": {
"nl": "Toegankelijk, ondanks dat het privegebied is" "nl": "Toegankelijk, ondanks dat het privegebied is"
@ -101,10 +84,7 @@
}, },
{ {
"if": { "if": {
"and": [ "and": ["access=guided", "fee="]
"access=guided",
"fee="
]
}, },
"then": { "then": {
"nl": "Enkel toegankelijk met een gids of tijdens een activiteit" "nl": "Enkel toegankelijk met een gids of tijdens een activiteit"
@ -112,10 +92,7 @@
}, },
{ {
"if": { "if": {
"and": [ "and": ["access=yes", "fee=yes"]
"access=yes",
"fee=yes"
]
}, },
"then": { "then": {
"nl": "Toegankelijk mits betaling" "nl": "Toegankelijk mits betaling"
@ -137,9 +114,7 @@
"mappings": [ "mappings": [
{ {
"if": { "if": {
"and": [ "and": ["operator=Natuurpunt"]
"operator=Natuurpunt"
]
}, },
"then": { "then": {
"nl": "<img src=\"./assets/themes/buurtnatuur/Natuurpunt.jpg\" style=\"width:1.5em\">Dit gebied wordt beheerd door Natuurpunt" "nl": "<img src=\"./assets/themes/buurtnatuur/Natuurpunt.jpg\" style=\"width:1.5em\">Dit gebied wordt beheerd door Natuurpunt"
@ -147,9 +122,7 @@
}, },
{ {
"if": { "if": {
"and": [ "and": ["operator~(n|N)atuurpunt.*"]
"operator~(n|N)atuurpunt.*"
]
}, },
"then": { "then": {
"nl": "<img src=\"./assets/themes/buurtnatuur/Natuurpunt.jpg\" style=\"width:1.5em\">Dit gebied wordt beheerd door {operator}" "nl": "<img src=\"./assets/themes/buurtnatuur/Natuurpunt.jpg\" style=\"width:1.5em\">Dit gebied wordt beheerd door {operator}"

View file

@ -13,10 +13,7 @@
"nl": "Op deze kaart vind je alle natuurgebieden die Natuurpunt ter beschikking stelt", "nl": "Op deze kaart vind je alle natuurgebieden die Natuurpunt ter beschikking stelt",
"en": "On this map you can find all the nature reserves that Natuurpunt offers " "en": "On this map you can find all the nature reserves that Natuurpunt offers "
}, },
"language": [ "language": ["nl"],
"nl",
"en"
],
"maintainer": "", "maintainer": "",
"icon": "./assets/themes/natuurpunt/natuurpunt.png", "icon": "./assets/themes/natuurpunt/natuurpunt.png",
"version": "0", "version": "0",
@ -26,16 +23,15 @@
"widenFactor": 0.05, "widenFactor": 0.05,
"socialImage": "", "socialImage": "",
"defaultBackgroundId": "CartoDB.Positron", "defaultBackgroundId": "CartoDB.Positron",
"layers": [{ "layers": [
{
"#": "Nature reserve with geometry, z>=13", "#": "Nature reserve with geometry, z>=13",
"builtin": "nature_reserve", "builtin": "nature_reserve",
"override": { "override": {
"name": null, "name": null,
"source": { "source": {
"osmTags": { "osmTags": {
"+and": [ "+and": ["operator~.*[nN]atuurpunt.*"]
"operator~.*[nN]atuurpunt.*"
]
}, },
"geoJson": "https://pietervdvn.github.io/natuurpunt_cache/natuurpunt_{layer}_{z}_{x}_{y}.geojson", "geoJson": "https://pietervdvn.github.io/natuurpunt_cache/natuurpunt_{layer}_{z}_{x}_{y}.geojson",
"geoJsonZoomLevel": 12, "geoJsonZoomLevel": 12,
@ -62,9 +58,7 @@
"override": { "override": {
"source": { "source": {
"osmTags": { "osmTags": {
"+and": [ "+and": ["operator~.*[nN]atuurpunt.*"]
"operator~.*[nN]atuurpunt.*"
]
}, },
"geoJson": "https://pietervdvn.github.io/natuurpunt_cache/natuurpunt_nature_reserve_points.geojson", "geoJson": "https://pietervdvn.github.io/natuurpunt_cache/natuurpunt_nature_reserve_points.geojson",
"isOsmCache": "duplicate" "isOsmCache": "duplicate"
@ -88,9 +82,7 @@
"override": { "override": {
"source": { "source": {
"osmTags": { "osmTags": {
"+and": [ "+and": ["operator~.*[nN]atuurpunt.*"]
"operator~.*[nN]atuurpunt.*"
]
}, },
"geoJson": "https://pietervdvn.github.io/natuurpunt_cache/natuurpunt_{layer}_{z}_{x}_{y}.geojson", "geoJson": "https://pietervdvn.github.io/natuurpunt_cache/natuurpunt_{layer}_{z}_{x}_{y}.geojson",
"geoJsonZoomLevel": 1, "geoJsonZoomLevel": 1,
@ -115,9 +107,7 @@
"override": { "override": {
"source": { "source": {
"osmTags": { "osmTags": {
"+and": [ "+and": ["operator~.*[nN]atuurpunt.*"]
"operator~.*[nN]atuurpunt.*"
]
}, },
"geoJson": "https://pietervdvn.github.io/natuurpunt_cache/natuurpunt_{layer}_{z}_{x}_{y}.geojson", "geoJson": "https://pietervdvn.github.io/natuurpunt_cache/natuurpunt_{layer}_{z}_{x}_{y}.geojson",
"geoJsonZoomLevel": 12, "geoJsonZoomLevel": 12,
@ -126,7 +116,8 @@
"minzoom": "13", "minzoom": "13",
"icon": { "icon": {
"render": "circle:#FE6F32;./assets/themes/natuurpunt/trail.svg", "render": "circle:#FE6F32;./assets/themes/natuurpunt/trail.svg",
"mappings": [{ "mappings": [
{
"if": "wheelchair=yes", "if": "wheelchair=yes",
"then": "circle:#FE6F32;./assets/themes/natuurpunt/walk_wheelchair.svg" "then": "circle:#FE6F32;./assets/themes/natuurpunt/walk_wheelchair.svg"
}, },
@ -138,11 +129,7 @@
}, },
"deletion": { "deletion": {
"hardDeletionTags": { "hardDeletionTags": {
"and": [ "and": ["route=hiking", "route=bycicle", "route=horse"]
"route=hiking",
"route=bycicle",
"route=horse"
]
} }
} }
} }
@ -158,7 +145,8 @@
}, },
"icon": { "icon": {
"render": "circle:#FE6F32;./assets/themes/natuurpunt/toilets.svg", "render": "circle:#FE6F32;./assets/themes/natuurpunt/toilets.svg",
"mappings": [{ "mappings": [
{
"if": "wheelchair=yes", "if": "wheelchair=yes",
"then": "circle:#FE6F32;./assets/themes/natuurpunt/wheelchair.svg" "then": "circle:#FE6F32;./assets/themes/natuurpunt/wheelchair.svg"
}, },
@ -186,12 +174,14 @@
"render": "circle:#FE6F32;./assets/themes/natuurpunt/birdhide.svg", "render": "circle:#FE6F32;./assets/themes/natuurpunt/birdhide.svg",
"mappings": null "mappings": null
}, },
"deletion": [{ "deletion": [
{
"if": "leisure=bird_hide", "if": "leisure=bird_hide",
"then": { "then": {
"hardDeletionTags": "leisure=bird_hide" "hardDeletionTags": "leisure=bird_hide"
} }
}, { },
{
"if": { "if": {
"or": [ "or": [
"building=yes", "building=yes",
@ -208,7 +198,8 @@
] ]
} }
} }
}] }
]
} }
}, },
{ {
@ -251,12 +242,15 @@
"minzoom": "16", "minzoom": "16",
"icon": { "icon": {
"render": "circle:#FE6F32;./assets/themes/natuurpunt/parking.svg", "render": "circle:#FE6F32;./assets/themes/natuurpunt/parking.svg",
"mappings": [{ "mappings": [
{
"if": "amenity=bicycle_parking", "if": "amenity=bicycle_parking",
"then": "circle:#FE6F32;./assets/themes/natuurpunt/parkingbike.svg" "then": "circle:#FE6F32;./assets/themes/natuurpunt/parkingbike.svg"
}] }
]
}, },
"iconOverlays": [{ "iconOverlays": [
{
"if": "amenity=motorcycle_parking", "if": "amenity=motorcycle_parking",
"then": "circle:#335D9F;./assets/themes/natuurpunt/parkingmotor.svg", "then": "circle:#335D9F;./assets/themes/natuurpunt/parkingmotor.svg",
"badge": true "badge": true