Add switch to hide certain features, cleanup of code

This commit is contained in:
Pieter Vander Vennet 2021-03-25 15:19:44 +01:00
parent aa0989b72a
commit 1b1ec9f15d
18 changed files with 230 additions and 173 deletions

View file

@ -15,9 +15,6 @@
"source": {
"osmTags": "amenity=public_bookcase"
},
"calculatedTags": {
"_distanceToPietervdn": "feat.distanceTo(3.704388, 51.05281) < 1 ? 'closeby' : 'faraway'"
},
"minzoom": 12,
"wayHandling": 2,
"title": {

View file

@ -6,13 +6,19 @@
"minzoom": 16,
"source": {
"osmTags": {
"or": [
"highway=pedestrian",
"highway=footway",
"highway=path",
"highway=bridleway",
"highway=living_street",
"highway=track"
"and": [
{
"or": [
"highway=pedestrian",
"highway=footway",
"highway=path",
"highway=bridleway",
"highway=living_street",
"highway=track"
]
},
"access!=no",
"access!=private"
]
}
},
@ -51,7 +57,8 @@
"nl": "Woonerf"
}
},
{"if": "highway=path",
{
"if": "highway=path",
"then": "Klein pad"
}
]