Refactoring: move anchor out of iconSize

This commit is contained in:
Pieter Vander Vennet 2023-06-20 02:02:45 +02:00
parent 3e49929f25
commit 140c813151
52 changed files with 168 additions and 87 deletions

View file

@ -479,7 +479,7 @@
"render": "<div style='margin-top: -42px; color: black' class='rounded-full p-1 font-bold relative'>{addr:housenumber}</div>",
"condition": "addr:housenumber~*"
},
"iconSize": "50,50,center",
"iconSize": "50,50",
"icon": {
"mappings": [
{
@ -495,7 +495,8 @@
"location": [
"point",
"centroid"
]
],
"anchor": "center"
},
{
"width": {

View file

@ -416,7 +416,8 @@
}
]
},
"iconSize": "30,30,center"
"iconSize": "30,30",
"anchor": "center"
}
],
"filter": [

View file

@ -235,7 +235,8 @@
"end"
],
"icon": "circle:#ccc",
"iconSize": "3,3,center"
"iconSize": "3,3",
"anchor": "center"
},
{
"#": "The center line",

View file

@ -43,7 +43,8 @@
}
]
},
"iconSize": "20,20,center"
"iconSize": "20,20",
"anchor": "center"
}
],
"tagRenderings": [

View file

@ -638,7 +638,7 @@
"render": "<div style='margin-top: -42px; color: white' class='rounded-full p-1 font-bold relative'>{addr:housenumber}</div>",
"condition": "addr:housenumber~*"
},
"iconSize": "50,50,center",
"iconSize": "50,50",
"icon": {
"render": "./assets/layers/address/housenumber_blank.svg",
"mappings": [
@ -661,7 +661,8 @@
"location": [
"point",
"centroid"
]
],
"anchor": "center"
},
{
"color": {

View file

@ -47,7 +47,8 @@
}
]
},
"iconSize": "20,20,center"
"iconSize": "20,20",
"anchor": "center"
}
],
"tagRenderings": [
@ -92,7 +93,8 @@
}
]
},
"iconSize": "20,20,center"
"iconSize": "20,20",
"anchor": "center"
}
],
"tagRenderings": [

View file

@ -210,7 +210,8 @@
"point"
],
"icon": "./assets/themes/width/icon.svg",
"iconSize": "40,40,center"
"iconSize": "40,40",
"anchor": "center"
},
{
"width": "4",