Refactoring: move more anchor specifications out of iconsize

This commit is contained in:
Pieter Vander Vennet 2023-06-20 03:14:45 +02:00
parent e86f7d863e
commit c260d16159
40 changed files with 130 additions and 86 deletions

View file

@ -362,11 +362,12 @@
"mapRendering": [
{
"icon": "./assets/themes/hailhydrant/Twemoji_1f691.svg",
"iconSize": "35,35,center",
"iconSize": "35,35",
"location": [
"point",
"centroid"
]
],
"anchor": "center"
},
{
"color": "#00f",

View file

@ -997,7 +997,7 @@
"mapRendering": [
{
"icon": "./assets/layers/bench/bench.svg",
"iconSize": "35,35,center",
"iconSize": "35,35",
"iconBadges": [
{
"if": "tourism=artwork",
@ -1007,7 +1007,8 @@
"location": [
"point",
"centroid"
]
],
"anchor": "center"
}
],
"filter": [

View file

@ -204,10 +204,11 @@
"mapRendering": [
{
"icon": "./assets/themes/benches/bench_public_transport.svg",
"iconSize": "35,35,center",
"iconSize": "35,35",
"location": [
"point"
]
],
"anchor": "center"
},
{
"color": "#00f",

View file

@ -338,11 +338,12 @@
"then": "circle:#e2783d;./assets/layers/bike_repair_station/pump.svg"
}
],
"iconSize": "50,50,bottom",
"iconSize": "50,50",
"location": [
"point",
"centroid"
]
],
"anchor": "bottom"
},
{
"color": "#c00",

View file

@ -528,11 +528,12 @@
"mapRendering": [
{
"icon": "./assets/themes/bicycle_rental/logo.svg",
"iconSize": "40,40,center",
"iconSize": "40,40",
"location": [
"point",
"centroid"
]
],
"anchor": "center"
},
{
"color": "#3333aa88",

View file

@ -1040,11 +1040,12 @@
"then": "invalid"
}
],
"iconSize": "50,50,bottom",
"iconSize": "50,50",
"location": [
"point",
"centroid"
]
],
"anchor": "bottom"
}
],
"description": {

View file

@ -70,11 +70,12 @@
"mapRendering": [
{
"icon": "./assets/layers/bike_themed_object/other_services.svg",
"iconSize": "50,50,bottom",
"iconSize": "50,50",
"location": [
"point",
"centroid"
]
],
"anchor": "bottom"
},
{
"color": "#AB76D5",

View file

@ -159,10 +159,11 @@
"mapRendering": [
{
"icon": "circle:white;./assets/layers/binocular/telescope.svg",
"iconSize": "40,40,center",
"iconSize": "40,40",
"location": [
"point"
]
],
"anchor": "center"
},
{
"color": "#00f",

View file

@ -4016,7 +4016,8 @@
"then": "circle:#fff;./assets/themes/charging_stations/car.svg"
}
],
"iconSize": "50,50,bottom"
"iconSize": "50,50",
"anchor": "bottom"
}
],
"presets": [

View file

@ -299,11 +299,12 @@
"mapRendering": [
{
"icon": "./assets/themes/climbing/climbing_no_rope.svg",
"iconSize": "40,40,center",
"iconSize": "40,40",
"location": [
"point",
"centroid"
]
],
"anchor": "center"
},
{
"dashArray": "8 16",

View file

@ -168,7 +168,7 @@
"then": "icons.isOpen"
}
],
"iconSize": "40,40,center",
"iconSize": "40,40",
"location": [
"point",
"centroid"
@ -180,7 +180,8 @@
"then": "<div style='background: white; padding: 0.25em; border-radius:0.5em'>{name}</div>"
}
]
}
},
"anchor": "center"
}
]
}

View file

@ -243,7 +243,7 @@
"then": "icons.isOpen"
}
],
"iconSize": "40,40,center",
"iconSize": "40,40",
"location": [
"point",
"centroid"
@ -255,7 +255,8 @@
"then": "<div style='background: white; padding: 0.25em; border-radius:0.5em'>{name}</div>"
}
]
}
},
"anchor": "center"
}
],
"presets": [

View file

@ -219,7 +219,7 @@
"mapRendering": [
{
"icon": "circle:white;./assets/themes/climbing/climbing_route.svg",
"iconSize": "28,28,center",
"iconSize": "28,28",
"location": [
"point",
"centroid"
@ -240,7 +240,8 @@
"then": "<div class='w-max p-1 rounded-xl' style='background: white;'>{name}</div>"
}
]
}
},
"anchor": "center"
},
{
"color": "#0f0",

View file

@ -273,10 +273,11 @@
}
]
},
"iconSize": "40,40,center",
"iconSize": "40,40",
"location": [
"point"
]
],
"anchor": "center"
},
{
"color": {

View file

@ -156,11 +156,12 @@
"mapRendering": [
{
"icon": "./assets/themes/hailhydrant/Twemoji12_1f9ef.svg",
"iconSize": "20,20,center",
"iconSize": "20,20",
"location": [
"point",
"centroid"
]
],
"anchor": "center"
}
]
}

View file

@ -298,11 +298,12 @@
"mapRendering": [
{
"icon": "./assets/themes/hailhydrant/Twemoji12_1f692.svg",
"iconSize": "35,35,center",
"iconSize": "35,35",
"location": [
"point",
"centroid"
]
],
"anchor": "center"
},
{
"color": "#c22",

View file

@ -334,11 +334,12 @@
}
]
},
"iconSize": "40,40,center",
"iconSize": "40,40",
"location": [
"point",
"centroid"
]
],
"anchor": "center"
},
{
"color": "#00f",

View file

@ -493,11 +493,12 @@
"mapRendering": [
{
"icon": "./assets/themes/hailhydrant/hydrant.svg",
"iconSize": "20,20,center",
"iconSize": "20,20",
"location": [
"point",
"centroid"
]
],
"anchor": "center"
},
{
"color": "#00f",

View file

@ -69,10 +69,11 @@
"mapRendering": [
{
"icon": "./assets/layers/information_board/board.svg",
"iconSize": "40,40,center",
"iconSize": "40,40",
"location": [
"point"
]
],
"anchor": "center"
},
{
"color": "#00f"

View file

@ -264,11 +264,12 @@
}
]
},
"iconSize": "50,50,center",
"iconSize": "50,50",
"location": [
"point",
"centroid"
]
],
"anchor": "center"
},
{
"color": "#00f",

View file

@ -130,11 +130,12 @@
}
]
},
"iconSize": "32,32,center",
"iconSize": "32,32",
"location": [
"point",
"projected_centerpoint"
]
],
"anchor": "center"
},
{
"color": {

View file

@ -528,11 +528,12 @@
"mapRendering": [
{
"icon": "./assets/layers/nature_reserve/nature_reserve.svg",
"iconSize": "50,50,center",
"iconSize": "50,50",
"location": [
"point",
"centroid"
]
],
"anchor": "center"
},
{
"color": "#3c3",

View file

@ -317,11 +317,12 @@
"mapRendering": [
{
"icon": "circle:white;./assets/layers/observation_tower/Tower_observation.svg",
"iconSize": "40,40,center",
"iconSize": "40,40",
"location": [
"point",
"centroid"
]
],
"anchor": "center"
}
]
}

View file

@ -258,7 +258,7 @@
"mapRendering": [
{
"icon": "./assets/layers/parking/parking.svg",
"iconSize": "36,36,center",
"iconSize": "36,36",
"location": [
"point",
"centroid"
@ -273,7 +273,8 @@
},
"then": "circle:white;./assets/layers/toilet/wheelchair.svg"
}
]
],
"anchor": "center"
},
{
"width": 2,

View file

@ -132,11 +132,12 @@
"mapRendering": [
{
"icon": "circle:#e6cf39;./assets/layers/picnic_table/picnic_table.svg",
"iconSize": "35,35,center",
"iconSize": "35,35",
"location": [
"point",
"centroid"
]
],
"anchor": "center"
}
]
}

View file

@ -109,11 +109,12 @@
"mapRendering": [
{
"icon": "./assets/layers/play_forest/icon.svg",
"iconSize": "40,40,center",
"iconSize": "40,40",
"location": [
"point",
"centroid"
]
],
"anchor": "center"
},
{
"color": "#007055",

View file

@ -80,11 +80,12 @@
"mapRendering": [
{
"icon": "./assets/layers/postboxes/postbox.svg",
"iconSize": "40,40,bottom",
"iconSize": "40,40",
"location": [
"point",
"centroid"
]
],
"anchor": "bottom"
},
{
"color": "#DADADA",

View file

@ -388,11 +388,12 @@
}
]
},
"iconSize": "40,40,center",
"iconSize": "40,40",
"location": [
"point",
"centroid"
]
],
"anchor": "center"
},
{
"color": "#fcd862",

View file

@ -360,11 +360,12 @@
}
]
},
"iconSize": "40,40,center",
"iconSize": "40,40",
"location": [
"point",
"centroid"
]
],
"anchor": "center"
},
{
"color": "#00f",

View file

@ -169,7 +169,7 @@
"point",
"centroid"
],
"iconSize": "40,40,center",
"iconSize": "40,40",
"label": {
"mappings": [
{
@ -178,7 +178,8 @@
}
]
},
"icon": "circle:white;./assets/layers/school/college.svg"
"icon": "circle:white;./assets/layers/school/college.svg",
"anchor": "center"
},
{
"color": "#22f1f4",

View file

@ -222,10 +222,11 @@
}
]
},
"iconSize": "35,35,center",
"iconSize": "35,35",
"location": [
"point"
]
],
"anchor": "center"
},
{
"color": {

View file

@ -846,11 +846,12 @@
}
]
},
"iconSize": "40,40,bottom",
"iconSize": "40,40",
"location": [
"point",
"centroid"
]
],
"anchor": "bottom"
}
],
"description": {

View file

@ -77,11 +77,12 @@
"mapRendering": [
{
"icon": "./assets/layers/visitor_information_centre/information.svg",
"iconSize": "40,40,center",
"iconSize": "40,40",
"location": [
"point",
"centroid"
]
],
"anchor": "center"
}
]
}

View file

@ -92,10 +92,11 @@
"mapRendering": [
{
"icon": "circle:#ffffff;./assets/themes/buurtnatuur/nature_reserve.svg",
"iconSize": "50,50,center",
"iconSize": "50,50",
"location": [
"point"
]
],
"anchor": "center"
},
{
"color": {
@ -198,10 +199,11 @@
"mapRendering": [
{
"icon": "circle:#ffffff;./assets/themes/buurtnatuur/park.svg",
"iconSize": "40,40,center",
"iconSize": "40,40",
"location": [
"point"
]
],
"anchor": "center"
},
{
"color": {
@ -292,10 +294,11 @@
"mapRendering": [
{
"icon": "circle:#ffffff;./assets/themes/buurtnatuur/forest.svg",
"iconSize": "40,40,center",
"iconSize": "40,40",
"location": [
"point"
]
],
"anchor": "center"
},
{
"color": {

View file

@ -872,11 +872,12 @@
}
]
},
"iconSize": "40,40,center",
"iconSize": "40,40",
"location": [
"point",
"centroid"
]
],
"anchor": "center"
},
{
"color": "#00f",
@ -1448,10 +1449,11 @@
"mapRendering": [
{
"icon": "circle:white;./assets/themes/campersite/sanitary_dump_station.svg",
"iconSize": "32,32,center",
"iconSize": "32,32",
"location": [
"point"
]
],
"anchor": "center"
},
{
"color": "#00f",

View file

@ -600,11 +600,12 @@
"then": "circle:white;./assets/themes/facadegardens/bloei.svg"
}
],
"iconSize": "50,50,center",
"iconSize": "50,50",
"location": [
"point",
"centroid"
]
],
"anchor": "center"
}
],
"deletion": true,

View file

@ -54,10 +54,11 @@
"mapRendering": [
{
"icon": "./assets/themes/buurtnatuur/forest.svg",
"iconSize": "40,40,center",
"iconSize": "40,40",
"location": [
"point"
]
],
"anchor": "center"
},
{
"color": "#00f",
@ -157,10 +158,11 @@
"mapRendering": [
{
"icon": "./assets/themes/fruit_trees/fruit_tree.svg",
"iconSize": "40,40,center",
"iconSize": "40,40",
"location": [
"point"
]
],
"anchor": "center"
},
{
"color": "#00f",

View file

@ -93,7 +93,8 @@
}
]
},
"iconSize": "40,40,center"
"iconSize": "40,40",
"anchor": "center"
}
],
"title": "OSM-gebouw",

View file

@ -200,11 +200,12 @@
"mapRendering": [
{
"icon": "./assets/themes/postal_codes/townhall.svg",
"iconSize": "40,40,center",
"iconSize": "40,40",
"location": [
"point",
"centroid"
]
],
"anchor": "center"
}
],
"isShown": "_country=be"

View file

@ -182,11 +182,12 @@
}
]
},
"iconSize": "40,40,center",
"iconSize": "40,40",
"location": [
"point",
"centroid"
]
],
"anchor": "center"
}
],
"description": "Alamat"