forked from MapComplete/MapComplete
Refactor isShown into a tagsfilter
This commit is contained in:
parent
dab0565a8b
commit
b8bca0287d
13 changed files with 64 additions and 123 deletions
|
@ -21,17 +21,9 @@
|
|||
"_is_enclosed=feat.properties._enclosing != '[]'"
|
||||
],
|
||||
"isShown": {
|
||||
"render": "yes",
|
||||
"mappings": [
|
||||
{
|
||||
"if": {
|
||||
"and": [
|
||||
"building~*",
|
||||
"_is_enclosed=true"
|
||||
]
|
||||
},
|
||||
"then": "no"
|
||||
}
|
||||
"or": [
|
||||
"building=",
|
||||
"_is_enclosed!=true"
|
||||
]
|
||||
},
|
||||
"tagRenderings": [
|
||||
|
|
|
@ -34,7 +34,9 @@
|
|||
"osmTags": {
|
||||
"or": [
|
||||
"leisure=nature_reserve",
|
||||
"boundary=protected_area"
|
||||
{
|
||||
"and": ["boundary=protected_area","protect_class!=22"]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
|
@ -149,15 +151,7 @@
|
|||
"_overlapWithUpperLayers=Math.max(...feat.overlapWith('nature_reserve_buurtnatuur').map(o => o.overlap))/feat.area",
|
||||
"_tooMuchOverlap=Number(feat.properties._overlapWithUpperLayers) > 0.1 ? 'yes' :'no'"
|
||||
],
|
||||
"isShown": {
|
||||
"render": "yes",
|
||||
"mappings": [
|
||||
{
|
||||
"if": "_tooMuchOverlap=yes",
|
||||
"then": "no"
|
||||
}
|
||||
]
|
||||
},
|
||||
"isShown": "_tooMuchOverlap!=yes",
|
||||
"title": {
|
||||
"render": {
|
||||
"nl": "Park"
|
||||
|
@ -257,15 +251,7 @@
|
|||
"_overlapWithUpperLayers=Math.max(...feat.overlapWith('parks','nature_reserve_buurtnatuur').map(o => o.overlap))/feat.area",
|
||||
"_tooMuchOverlap=Number(feat.properties._overlapWithUpperLayers) > 0.1 ? 'yes' : 'no'"
|
||||
],
|
||||
"isShown": {
|
||||
"render": "yes",
|
||||
"mappings": [
|
||||
{
|
||||
"if": "_tooMuchOverlap=yes",
|
||||
"then": "no"
|
||||
}
|
||||
]
|
||||
},
|
||||
"isShown": "_tooMuchOverlap!=yes",
|
||||
"title": {
|
||||
"render": {
|
||||
"nl": "Bos"
|
||||
|
|
|
@ -73,15 +73,7 @@
|
|||
]
|
||||
}
|
||||
},
|
||||
"isShown": {
|
||||
"render": "yes",
|
||||
"mappings": [
|
||||
{
|
||||
"if": "id!~way/.*",
|
||||
"then": "no"
|
||||
}
|
||||
]
|
||||
},
|
||||
"isShown": "id~way/.*",
|
||||
"description": {
|
||||
"nl": "Een fietsstraat is een straat waar gemotoriseerd verkeer een fietser niet mag inhalen",
|
||||
"en": "A cyclestreet is a street where motorized traffic is not allowed to overtake a cyclist",
|
||||
|
|
|
@ -630,18 +630,10 @@
|
|||
}
|
||||
}
|
||||
],
|
||||
"isShown": {
|
||||
"render": "yes",
|
||||
"mappings": [
|
||||
{
|
||||
"if": {
|
||||
"and": [
|
||||
"_imported_osm_object_found=true",
|
||||
"_imported_osm_still_fresh=true"
|
||||
]
|
||||
},
|
||||
"then": "no"
|
||||
}
|
||||
"isShown":{
|
||||
"or": [
|
||||
"_imported_osm_object_found!=true",
|
||||
"_imported_osm_still_fresh!=true"
|
||||
]
|
||||
},
|
||||
"mapRendering": [
|
||||
|
|
|
@ -117,15 +117,7 @@
|
|||
"dashArray": "8 8"
|
||||
}
|
||||
],
|
||||
"isShown": {
|
||||
"render": "yes",
|
||||
"mappings": [
|
||||
{
|
||||
"if": "_country!=be",
|
||||
"then": "no"
|
||||
}
|
||||
]
|
||||
}
|
||||
"isShown": "_country=be"
|
||||
},
|
||||
{
|
||||
"id": "wrong_postal_code",
|
||||
|
@ -196,15 +188,7 @@
|
|||
]
|
||||
}
|
||||
],
|
||||
"isShown": {
|
||||
"render": "yes",
|
||||
"mappings": [
|
||||
{
|
||||
"if": "_country!=be",
|
||||
"then": "no"
|
||||
}
|
||||
]
|
||||
}
|
||||
"isShown": "_country=be"
|
||||
}
|
||||
]
|
||||
}
|
|
@ -288,14 +288,6 @@
|
|||
"then": "./assets/themes/speelplekken/youtube.svg"
|
||||
}
|
||||
],
|
||||
"isShown": {
|
||||
"render": "yes",
|
||||
"mappings": [
|
||||
{
|
||||
"if": "_is_shadowed=yes",
|
||||
"then": "no"
|
||||
}
|
||||
]
|
||||
}
|
||||
"isShown":"_is_shadowed!=yes"
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue