Improvements to the postal code theme

This commit is contained in:
Pieter Vander Vennet 2021-12-09 18:01:58 +01:00
parent 98d92e763a
commit 35645e7f83

View file

@ -78,17 +78,22 @@
],
"isShown": {
"render": "yes",
"mappings": [{
"if" :"_country!=be",
"mappings": [
{
"if": "_country!=be",
"then": "no"
}]
}
]
}
},
{
"id": "wrong_postal_code",
"source": {
"osmTags": {
"and": ["boundary~*","addr:postcode~*"]
"and": [
"boundary~*",
"addr:postcode~*"
]
}
},
"title": "Boundary relation with addr:postcode={addr:postcode}",
@ -116,14 +121,14 @@
"_postal_code_center_distance=feat.distanceTo(feat.get('_postal_code_properties').id)"
],
"description": {},
"tagRenderings": [
],
"tagRenderings": [],
"presets": [],
"source": {
"osmTags": "amenity=townhall"
},
"mapRendering": [
{ "icon": "./assets/themes/postal_codes/townhall.svg",
{
"icon": "./assets/themes/postal_codes/townhall.svg",
"iconSize": {
"render": "40,40,center"
},
@ -135,10 +140,12 @@
],
"isShown": {
"render": "yes",
"mappings": [{
"if" :"_country!=be",
"mappings": [
{
"if": "_country!=be",
"then": "no"
}]
}
]
}
}
]