Refactoring: further cleanup of the themes

This commit is contained in:
Pieter Vander Vennet 2023-06-20 03:14:18 +02:00
parent 2f5091a8cb
commit e86f7d863e
86 changed files with 230 additions and 579 deletions

View file

@ -259,14 +259,6 @@ class ClosestNObjectFunc implements ExtraFunction {
const maxDistance = options?.maxDistance ?? 500 const maxDistance = options?.maxDistance ?? 500
const uniqueTag: string | undefined = options?.uniqueTag const uniqueTag: string | undefined = options?.uniqueTag
let allFeatures: Feature[][] let allFeatures: Feature[][]
console.log(
"Calculating closest",
options?.maxFeatures,
"features around",
feature,
"in layer",
features
)
if (typeof features === "string") { if (typeof features === "string") {
const name = features const name = features
const bbox = GeoOperations.bbox( const bbox = GeoOperations.bbox(

View file

@ -147,13 +147,25 @@ export class UpdateLegacyLayer extends DesugaringStep<
const pr = <PointRenderingConfigJson>rendering const pr = <PointRenderingConfigJson>rendering
const iconSize = pr.iconSize const iconSize = pr.iconSize
if (typeof iconSize === "string") if (typeof iconSize === "string")
if (["bottom", "center", "top"].some((a) => (<string>iconSize).endsWith("," + a))) { if (["bottom", "center", "top"].some((a) => (<string>iconSize).endsWith(a))) {
const parts = iconSize.split(",").map((parts) => parts.toLowerCase().trim()) const parts = iconSize.split(",").map((parts) => parts.toLowerCase().trim())
pr.anchor = parts.pop() pr.anchor = parts.pop()
pr.iconSize = parts.join(",") pr.iconSize = parts.join(",")
} }
} }
for (const rendering of config.mapRendering) {
for (const key in rendering) {
if (
typeof rendering[key]["render"] === "string" &&
Object.keys(rendering[key]).length === 1
) {
console.log("Rewrite: ", rendering[key])
rendering[key] = rendering[key]["render"]
}
}
}
return { return {
result: config, result: config,
errors: [], errors: [],

View file

@ -32,6 +32,12 @@ export default class WithContextLoader {
return shared return shared
} }
} }
if (Object.keys(v).length === 1 && typeof v["render"] === "string") {
throw `At ${
translationContext ?? "<unknown>"
}: use the content directly instead of {${key}: ${JSON.stringify(v)}}`
}
return new TagRenderingConfig(v, `${translationContext ?? this._context}.${key}`) return new TagRenderingConfig(v, `${translationContext ?? this._context}.${key}`)
} }

View file

@ -34,7 +34,9 @@ export class Translation extends BaseUIElement {
console.error( console.error(
"Non-string object at", "Non-string object at",
context, context,
"in translation: ", `for language`,
translationsKey,
`in translation: `,
translations[translationsKey], translations[translationsKey],
"\n current translations are: ", "\n current translations are: ",
translations translations

View file

@ -297,9 +297,7 @@
} }
] ]
}, },
"width": { "width": "8"
"render": "8"
}
} }
] ]
} }

View file

@ -971,30 +971,31 @@
] ]
}, },
"iconSize": { "iconSize": {
"render": "40,40,bottom", "render": "40,40",
"mappings": [ "mappings": [
{
"if": "_referencing_ways~*",
"then": "40,40,center"
},
{ {
"if": "advertising=flag", "if": "advertising=flag",
"then": "60,60,bottom" "then": "60,60"
}, },
{ {
"if": "advertising=sculpture", "if": "advertising=sculpture",
"then": "50,50,bottom" "then": "50,50"
}
]
},
"anchor": {
"render": "bottom",
"mappings": [
{
"if": "_referencing_ways~*",
"then": "center"
} }
] ]
} }
}, },
{ {
"width": { "width": "8",
"render": "8" "color": "#00f"
},
"color": {
"render": "#00f"
}
} }
], ],
"allowMove": { "allowMove": {

View file

@ -361,24 +361,16 @@
], ],
"mapRendering": [ "mapRendering": [
{ {
"icon": { "icon": "./assets/themes/hailhydrant/Twemoji_1f691.svg",
"render": "./assets/themes/hailhydrant/Twemoji_1f691.svg" "iconSize": "35,35,center",
},
"iconSize": {
"render": "35,35,center"
},
"location": [ "location": [
"point", "point",
"centroid" "centroid"
] ]
}, },
{ {
"color": { "color": "#00f",
"render": "#00f" "width": "1"
},
"width": {
"render": "1"
}
} }
] ]
} }

View file

@ -728,21 +728,15 @@
}, },
"mapRendering": [ "mapRendering": [
{ {
"icon": { "icon": "./assets/themes/artwork/artwork.svg",
"render": "./assets/themes/artwork/artwork.svg"
},
"location": [ "location": [
"point", "point",
"centroid" "centroid"
] ]
}, },
{ {
"color": { "color": "#0000ff",
"render": "#0000ff" "width": "10"
},
"width": {
"render": "10"
}
} }
], ],
"filter": [ "filter": [

View file

@ -996,12 +996,8 @@
}, },
"mapRendering": [ "mapRendering": [
{ {
"icon": { "icon": "./assets/layers/bench/bench.svg",
"render": "./assets/layers/bench/bench.svg" "iconSize": "35,35,center",
},
"iconSize": {
"render": "35,35,center"
},
"iconBadges": [ "iconBadges": [
{ {
"if": "tourism=artwork", "if": "tourism=artwork",

View file

@ -203,23 +203,15 @@
], ],
"mapRendering": [ "mapRendering": [
{ {
"icon": { "icon": "./assets/themes/benches/bench_public_transport.svg",
"render": "./assets/themes/benches/bench_public_transport.svg" "iconSize": "35,35,center",
},
"iconSize": {
"render": "35,35,center"
},
"location": [ "location": [
"point" "point"
] ]
}, },
{ {
"color": { "color": "#00f",
"render": "#00f" "width": "8"
},
"width": {
"render": "8"
}
} }
], ],
"deletion": { "deletion": {

View file

@ -327,9 +327,7 @@
], ],
"mapRendering": [ "mapRendering": [
{ {
"icon": { "icon": "pin:#22ff55;./assets/layers/bicycle_library/bicycle_library.svg",
"render": "pin:#22ff55;./assets/layers/bicycle_library/bicycle_library.svg"
},
"iconBadges": [ "iconBadges": [
{ {
"if": "opening_hours~*", "if": "opening_hours~*",
@ -340,21 +338,15 @@
"then": "circle:#e2783d;./assets/layers/bike_repair_station/pump.svg" "then": "circle:#e2783d;./assets/layers/bike_repair_station/pump.svg"
} }
], ],
"iconSize": { "iconSize": "50,50,bottom",
"render": "50,50,bottom"
},
"location": [ "location": [
"point", "point",
"centroid" "centroid"
] ]
}, },
{ {
"color": { "color": "#c00",
"render": "#c00" "width": "1"
},
"width": {
"render": "1"
}
} }
], ],
"deletion": true "deletion": true

View file

@ -528,21 +528,15 @@
"mapRendering": [ "mapRendering": [
{ {
"icon": "./assets/themes/bicycle_rental/logo.svg", "icon": "./assets/themes/bicycle_rental/logo.svg",
"iconSize": { "iconSize": "40,40,center",
"render": "40,40,center"
},
"location": [ "location": [
"point", "point",
"centroid" "centroid"
] ]
}, },
{ {
"color": { "color": "#3333aa88",
"render": "#3333aa88" "width": "2"
},
"width": {
"render": "2"
}
} }
], ],
"allowMove": { "allowMove": {

View file

@ -290,9 +290,7 @@
}, },
"mapRendering": [ "mapRendering": [
{ {
"icon": { "icon": "pin:#ffffff;./assets/layers/bicycle_tube_vending_machine/pinIcon.svg",
"render": "pin:#ffffff;./assets/layers/bicycle_tube_vending_machine/pinIcon.svg"
},
"iconBadges": [ "iconBadges": [
{ {
"if": { "if": {

View file

@ -340,24 +340,17 @@
], ],
"mapRendering": [ "mapRendering": [
{ {
"icon": { "icon": "pin:#684c2b;./assets/layers/bike_cafe/bike_cafe.svg",
"render": "pin:#684c2b;./assets/layers/bike_cafe/bike_cafe.svg" "iconSize": "50,50",
}, "anchor": "bottom",
"iconSize": {
"render": "50,50,bottom"
},
"location": [ "location": [
"point", "point",
"centroid" "centroid"
] ]
}, },
{ {
"color": { "color": "#694E2D",
"render": "#694E2D" "width": "2"
},
"width": {
"render": "2"
}
} }
], ],
"description": { "description": {

View file

@ -239,9 +239,7 @@
}, },
"mapRendering": [ "mapRendering": [
{ {
"icon": { "icon": "./assets/layers/bike_cleaning/bike_cleaning.svg",
"render": "./assets/layers/bike_cleaning/bike_cleaning.svg"
},
"iconBadges": [ "iconBadges": [
{ {
"if": { "if": {

View file

@ -696,9 +696,7 @@
}, },
"mapRendering": [ "mapRendering": [
{ {
"icon": { "icon": "pin:#5473de;./assets/layers/bike_parking/parking.svg",
"render": "pin:#5473de;./assets/layers/bike_parking/parking.svg"
},
"iconSize": "40,40", "iconSize": "40,40",
"location": [ "location": [
"point", "point",

View file

@ -1040,9 +1040,7 @@
"then": "invalid" "then": "invalid"
} }
], ],
"iconSize": { "iconSize": "50,50,bottom",
"render": "50,50,bottom"
},
"location": [ "location": [
"point", "point",
"centroid" "centroid"

View file

@ -827,31 +827,20 @@
"then": "circle:#e2783d;./assets/layers/bike_repair_station/pump.svg" "then": "circle:#e2783d;./assets/layers/bike_repair_station/pump.svg"
}, },
{ {
"if": { "if": "service:bicycle:cleaning~*",
"and": [ "then": "./assets/layers/bike_cleaning/bike_cleaning_icon.svg"
"service:bicycle:cleaning~*"
]
},
"then": {
"render": "./assets/layers/bike_cleaning/bike_cleaning_icon.svg"
}
} }
], ],
"iconSize": { "iconSize": "50,50",
"render": "50,50,bottom" "anchor": "bottom",
},
"location": [ "location": [
"point", "point",
"centroid" "centroid"
] ]
}, },
{ {
"color": { "color": "#c00",
"render": "#c00" "width": "1"
},
"width": {
"render": "1"
}
} }
], ],
"filter": [ "filter": [

View file

@ -69,24 +69,16 @@
"presets": [], "presets": [],
"mapRendering": [ "mapRendering": [
{ {
"icon": { "icon": "./assets/layers/bike_themed_object/other_services.svg",
"render": "./assets/layers/bike_themed_object/other_services.svg" "iconSize": "50,50,bottom",
},
"iconSize": {
"render": "50,50,bottom"
},
"location": [ "location": [
"point", "point",
"centroid" "centroid"
] ]
}, },
{ {
"color": { "color": "#AB76D5",
"render": "#AB76D5" "width": "2"
},
"width": {
"render": "2"
}
} }
], ],
"description": { "description": {

View file

@ -158,23 +158,15 @@
}, },
"mapRendering": [ "mapRendering": [
{ {
"icon": { "icon": "circle:white;./assets/layers/binocular/telescope.svg",
"render": "circle:white;./assets/layers/binocular/telescope.svg" "iconSize": "40,40,center",
},
"iconSize": {
"render": "40,40,center"
},
"location": [ "location": [
"point" "point"
] ]
}, },
{ {
"color": { "color": "#00f",
"render": "#00f" "width": "8"
},
"width": {
"render": "8"
}
} }
] ]
} }

View file

@ -4016,9 +4016,7 @@
"then": "circle:#fff;./assets/themes/charging_stations/car.svg" "then": "circle:#fff;./assets/themes/charging_stations/car.svg"
} }
], ],
"iconSize": { "iconSize": "50,50,bottom"
"render": "50,50,bottom"
}
} }
], ],
"presets": [ "presets": [
@ -4412,4 +4410,4 @@
}, },
"neededChangesets": 10 "neededChangesets": 10
} }
} }

View file

@ -298,12 +298,8 @@
], ],
"mapRendering": [ "mapRendering": [
{ {
"icon": { "icon": "./assets/themes/climbing/climbing_no_rope.svg",
"render": "./assets/themes/climbing/climbing_no_rope.svg" "iconSize": "40,40,center",
},
"iconSize": {
"render": "40,40,center"
},
"location": [ "location": [
"point", "point",
"centroid" "centroid"

View file

@ -161,18 +161,14 @@
], ],
"mapRendering": [ "mapRendering": [
{ {
"icon": { "icon": "./assets/themes/climbing/club.svg",
"render": "./assets/themes/climbing/club.svg"
},
"iconBadges": [ "iconBadges": [
{ {
"if": "opening_hours~*", "if": "opening_hours~*",
"then": "icons.isOpen" "then": "icons.isOpen"
} }
], ],
"iconSize": { "iconSize": "40,40,center",
"render": "40,40,center"
},
"location": [ "location": [
"point", "point",
"centroid" "centroid"

View file

@ -236,18 +236,14 @@
], ],
"mapRendering": [ "mapRendering": [
{ {
"icon": { "icon": "./assets/themes/climbing/climbing_gym.svg",
"render": "./assets/themes/climbing/climbing_gym.svg"
},
"iconBadges": [ "iconBadges": [
{ {
"if": "opening_hours~*", "if": "opening_hours~*",
"then": "icons.isOpen" "then": "icons.isOpen"
} }
], ],
"iconSize": { "iconSize": "40,40,center",
"render": "40,40,center"
},
"location": [ "location": [
"point", "point",
"centroid" "centroid"

View file

@ -128,12 +128,8 @@
] ]
}, },
{ {
"color": { "color": "#ddff55AA",
"render": "#ddff55AA" "width": "2"
},
"width": {
"render": "2"
}
} }
] ]
} }

View file

@ -218,12 +218,8 @@
], ],
"mapRendering": [ "mapRendering": [
{ {
"icon": { "icon": "circle:white;./assets/themes/climbing/climbing_route.svg",
"render": "circle:white;./assets/themes/climbing/climbing_route.svg" "iconSize": "28,28,center",
},
"iconSize": {
"render": "28,28,center"
},
"location": [ "location": [
"point", "point",
"centroid" "centroid"
@ -247,12 +243,8 @@
} }
}, },
{ {
"color": { "color": "#0f0",
"render": "#0f0" "width": "4"
},
"width": {
"render": "4"
}
} }
] ]
} }

View file

@ -17,9 +17,7 @@
], ],
"iconSize": "50,50", "iconSize": "50,50",
"icon": "./assets/layers/crab_address/housenumber_blank.svg", "icon": "./assets/layers/crab_address/housenumber_blank.svg",
"label": { "label": "<div style='margin-top: -42px; color: white' class='rounded-full p-1 font-bold relative'>{_HNRLABEL}</div>",
"render": "<div style='margin-top: -42px; color: white' class='rounded-full p-1 font-bold relative'>{_HNRLABEL}</div>"
},
"anchor": "center" "anchor": "center"
} }
], ],

View file

@ -1610,12 +1610,8 @@
"allowSplit": true, "allowSplit": true,
"mapRendering": [ "mapRendering": [
{ {
"icon": { "icon": "./assets/themes/cycle_infra/bicycleway.svg",
"render": "./assets/themes/cycle_infra/bicycleway.svg" "iconSize": "40,40",
},
"iconSize": {
"render": "40,40,center"
},
"location": [ "location": [
"point" "point"
] ]
@ -1654,9 +1650,7 @@
} }
] ]
}, },
"width": { "width": "8",
"render": "8"
},
"dashArray": { "dashArray": {
"render": "", "render": "",
"mappings": [ "mappings": [

View file

@ -67,9 +67,7 @@
], ],
"mapRendering": [ "mapRendering": [
{ {
"icon": { "icon": "circle:white;./assets/layers/dentist/dentist.svg",
"render": "circle:white;./assets/layers/dentist/dentist.svg"
},
"iconSize": "40,40", "iconSize": "40,40",
"location": [ "location": [
"point", "point",

View file

@ -40,9 +40,7 @@
"point", "point",
"centroid" "centroid"
], ],
"rotation": { "rotation": "{_direction:numerical}deg",
"render": "{_direction:numerical}deg"
},
"anchor": "center" "anchor": "center"
}, },
{ {

View file

@ -126,9 +126,7 @@
], ],
"mapRendering": [ "mapRendering": [
{ {
"icon": { "icon": "circle:white;./assets/layers/doctors/doctors.svg",
"render": "circle:white;./assets/layers/doctors/doctors.svg"
},
"iconSize": "40,40", "iconSize": "40,40",
"location": [ "location": [
"point", "point",

View file

@ -244,9 +244,7 @@
}, },
"mapRendering": [ "mapRendering": [
{ {
"icon": { "icon": "pin:#6BC4F7;./assets/layers/drinking_water/drips.svg",
"render": "pin:#6BC4F7;./assets/layers/drinking_water/drips.svg"
},
"iconBadges": [ "iconBadges": [
{ {
"if": { "if": {

View file

@ -191,9 +191,7 @@
], ],
"mapRendering": [ "mapRendering": [
{ {
"icon": { "icon": "circle:white;./assets/layers/elevator/elevator_wheelchair.svg",
"render": "circle:white;./assets/layers/elevator/elevator_wheelchair.svg"
},
"iconSize": "40,40", "iconSize": "40,40",
"location": [ "location": [
"point", "point",

View file

@ -273,9 +273,7 @@
} }
] ]
}, },
"iconSize": { "iconSize": "40,40,center",
"render": "40,40,center"
},
"location": [ "location": [
"point" "point"
] ]

View file

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

View file

@ -297,24 +297,16 @@
], ],
"mapRendering": [ "mapRendering": [
{ {
"icon": { "icon": "./assets/themes/hailhydrant/Twemoji12_1f692.svg",
"render": "./assets/themes/hailhydrant/Twemoji12_1f692.svg" "iconSize": "35,35,center",
},
"iconSize": {
"render": "35,35,center"
},
"location": [ "location": [
"point", "point",
"centroid" "centroid"
] ]
}, },
{ {
"color": { "color": "#c22",
"render": "#c22" "width": "1"
},
"width": {
"render": "1"
}
} }
] ]
} }

View file

@ -64,9 +64,7 @@
], ],
"mapRendering": [ "mapRendering": [
{ {
"icon": { "icon": "circle:white;./assets/layers/governments/government.svg",
"render": "circle:white;./assets/layers/governments/government.svg"
},
"iconSize": "40,40", "iconSize": "40,40",
"location": [ "location": [
"point", "point",

View file

@ -4,7 +4,9 @@
"minzoom": 0, "minzoom": 0,
"source": "special", "source": "special",
"title": { "title": {
"render": "Your travelled path" "render": {
"en": "Your travelled path"
}
}, },
"shownByDefault": false, "shownByDefault": false,
"tagRenderings": [ "tagRenderings": [

View file

@ -334,21 +334,15 @@
} }
] ]
}, },
"iconSize": { "iconSize": "40,40,center",
"render": "40,40,center"
},
"location": [ "location": [
"point", "point",
"centroid" "centroid"
] ]
}, },
{ {
"color": { "color": "#00f",
"render": "#00f" "width": "8"
},
"width": {
"render": "8"
}
} }
], ],
"allowMove": true, "allowMove": true,

View file

@ -5,12 +5,8 @@
"source": "special", "source": "special",
"mapRendering": [ "mapRendering": [
{ {
"icon": { "icon": "circle:white;./assets/svg/home.svg",
"render": "circle:white;./assets/svg/home.svg" "iconSize": "20,20",
},
"iconSize": {
"render": "20,20,center"
},
"location": [ "location": [
"point", "point",
"centroid" "centroid"

View file

@ -112,9 +112,7 @@
], ],
"mapRendering": [ "mapRendering": [
{ {
"icon": { "icon": "circle:white;./assets/layers/hospital/hospital.svg",
"render": "circle:white;./assets/layers/hospital/hospital.svg"
},
"iconSize": "40,40", "iconSize": "40,40",
"location": [ "location": [
"point", "point",

View file

@ -492,24 +492,16 @@
], ],
"mapRendering": [ "mapRendering": [
{ {
"icon": { "icon": "./assets/themes/hailhydrant/hydrant.svg",
"render": "./assets/themes/hailhydrant/hydrant.svg" "iconSize": "20,20,center",
},
"iconSize": {
"render": "20,20,center"
},
"location": [ "location": [
"point", "point",
"centroid" "centroid"
] ]
}, },
{ {
"color": { "color": "#00f",
"render": "#00f" "width": "8"
},
"width": {
"render": "8"
}
} }
], ],
"units": [ "units": [

View file

@ -151,15 +151,9 @@
], ],
"mapRendering": [ "mapRendering": [
{ {
"color": { "color": "#d3d7d588",
"render": "#d3d7d588" "width": "8",
}, "offset": "-4",
"width": {
"render": "8"
},
"offset": {
"render": "-4"
},
"fill": "no" "fill": "no"
}, },
{ {

View file

@ -68,20 +68,14 @@
}, },
"mapRendering": [ "mapRendering": [
{ {
"icon": { "icon": "./assets/layers/information_board/board.svg",
"render": "./assets/layers/information_board/board.svg" "iconSize": "40,40,center",
},
"iconSize": {
"render": "40,40,center"
},
"location": [ "location": [
"point" "point"
] ]
}, },
{ {
"color": { "color": "#00f"
"render": "#00f"
}
} }
], ],
"description": { "description": {

View file

@ -264,21 +264,15 @@
} }
] ]
}, },
"iconSize": { "iconSize": "50,50,center",
"render": "50,50,center"
},
"location": [ "location": [
"point", "point",
"centroid" "centroid"
] ]
}, },
{ {
"color": { "color": "#00f",
"render": "#00f" "width": "8"
},
"width": {
"render": "8"
}
} }
] ]
} }

View file

@ -130,9 +130,7 @@
} }
] ]
}, },
"iconSize": { "iconSize": "32,32,center",
"render": "32,32,center"
},
"location": [ "location": [
"point", "point",
"projected_centerpoint" "projected_centerpoint"
@ -148,9 +146,7 @@
} }
] ]
}, },
"width": { "width": "3"
"render": "3"
}
} }
], ],
"units": [ "units": [

View file

@ -12,12 +12,8 @@
}, },
"mapRendering": [ "mapRendering": [
{ {
"color": { "color": "#ccc",
"render": "#ccc" "width": "3"
},
"width": {
"render": "3"
}
} }
], ],
"shownByDefault": false "shownByDefault": false

View file

@ -527,24 +527,16 @@
], ],
"mapRendering": [ "mapRendering": [
{ {
"icon": { "icon": "./assets/layers/nature_reserve/nature_reserve.svg",
"render": "./assets/layers/nature_reserve/nature_reserve.svg" "iconSize": "50,50,center",
},
"iconSize": {
"render": "50,50,center"
},
"location": [ "location": [
"point", "point",
"centroid" "centroid"
] ]
}, },
{ {
"color": { "color": "#3c3",
"render": "#3c3" "width": "1"
},
"width": {
"render": "1"
}
} }
] ]
} }

View file

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

View file

@ -37,9 +37,7 @@
], ],
"mapRendering": [ "mapRendering": [
{ {
"icon": { "icon": "pin:#6BC4F7;./assets/layers/osm_community_index/osm.svg",
"render": "pin:#6BC4F7;./assets/layers/osm_community_index/osm.svg"
},
"iconSize": "40,40", "iconSize": "40,40",
"location": [ "location": [
"point" "point"
@ -48,9 +46,7 @@
}, },
{ {
"color": "#444444", "color": "#444444",
"width": { "width": "1"
"render": "1"
}
} }
], ],
"filter": [ "filter": [

View file

@ -257,12 +257,8 @@
}, },
"mapRendering": [ "mapRendering": [
{ {
"icon": { "icon": "./assets/layers/parking/parking.svg",
"render": "./assets/layers/parking/parking.svg" "iconSize": "36,36,center",
},
"iconSize": {
"render": "36,36,center"
},
"location": [ "location": [
"point", "point",
"centroid" "centroid"

View file

@ -113,9 +113,7 @@
], ],
"mapRendering": [ "mapRendering": [
{ {
"icon": { "icon": "./assets/layers/pharmacy/pharmacy.svg",
"render": "./assets/layers/pharmacy/pharmacy.svg"
},
"iconSize": "40,40", "iconSize": "40,40",
"location": [ "location": [
"point", "point",

View file

@ -62,9 +62,7 @@
], ],
"mapRendering": [ "mapRendering": [
{ {
"icon": { "icon": "circle:white;./assets/layers/physiotherapist/doctors.svg",
"render": "circle:white;./assets/layers/physiotherapist/doctors.svg"
},
"iconSize": "40,40", "iconSize": "40,40",
"location": [ "location": [
"point", "point",

View file

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

View file

@ -109,9 +109,7 @@
"mapRendering": [ "mapRendering": [
{ {
"icon": "./assets/layers/play_forest/icon.svg", "icon": "./assets/layers/play_forest/icon.svg",
"iconSize": { "iconSize": "40,40,center",
"render": "40,40,center"
},
"location": [ "location": [
"point", "point",
"centroid" "centroid"

View file

@ -596,9 +596,7 @@
}, },
"mapRendering": [ "mapRendering": [
{ {
"icon": { "icon": "./assets/themes/playgrounds/playground.svg",
"render": "./assets/themes/playgrounds/playground.svg"
},
"iconBadges": [ "iconBadges": [
{ {
"if": { "if": {
@ -637,12 +635,8 @@
] ]
}, },
{ {
"color": { "color": "#5dbaa9",
"render": "#5dbaa9" "width": "1"
},
"width": {
"render": "1"
}
} }
] ]
} }

View file

@ -79,24 +79,16 @@
}, },
"mapRendering": [ "mapRendering": [
{ {
"icon": { "icon": "./assets/layers/postboxes/postbox.svg",
"render": "./assets/layers/postboxes/postbox.svg" "iconSize": "40,40,bottom",
},
"iconSize": {
"render": "40,40,bottom"
},
"location": [ "location": [
"point", "point",
"centroid" "centroid"
] ]
}, },
{ {
"color": { "color": "#DADADA",
"render": "#DADADA" "width": "1"
},
"width": {
"render": "1"
}
} }
] ]
} }

View file

@ -433,9 +433,7 @@
], ],
"mapRendering": [ "mapRendering": [
{ {
"icon": { "icon": "square:white;./assets/layers/postoffices/post_office.svg",
"render": "square:white;./assets/layers/postoffices/post_office.svg"
},
"iconBadges": [ "iconBadges": [
{ {
"if": "opening_hours~*", "if": "opening_hours~*",

View file

@ -522,9 +522,7 @@
], ],
"mapRendering": [ "mapRendering": [
{ {
"icon": { "icon": "circle:#ffffff;./assets/themes/bookcases/bookcase.svg",
"render": "circle:#ffffff;./assets/themes/bookcases/bookcase.svg"
},
"label": { "label": {
"mappings": [ "mappings": [
{ {
@ -539,12 +537,8 @@
] ]
}, },
{ {
"color": { "color": "#0000ff",
"render": "#0000ff" "width": "8"
},
"width": {
"render": "8"
}
} }
] ]
} }

View file

@ -388,9 +388,7 @@
} }
] ]
}, },
"iconSize": { "iconSize": "40,40,center",
"render": "40,40,center"
},
"location": [ "location": [
"point", "point",
"centroid" "centroid"

View file

@ -360,21 +360,15 @@
} }
] ]
}, },
"iconSize": { "iconSize": "40,40,center",
"render": "40,40,center"
},
"location": [ "location": [
"point", "point",
"centroid" "centroid"
] ]
}, },
{ {
"color": { "color": "#00f",
"render": "#00f" "width": "8"
},
"width": {
"render": "8"
}
} }
], ],
"filter": [ "filter": [

View file

@ -253,12 +253,8 @@
] ]
}, },
{ {
"color": { "color": "#eaba2a",
"render": "#eaba2a" "width": "7",
},
"width": {
"render": "7"
},
"dashArray": { "dashArray": {
"render": "", "render": "",
"mappings": [ "mappings": [

View file

@ -647,12 +647,8 @@
} }
}, },
{ {
"color": { "color": "#f00",
"render": "#f00" "width": "8"
},
"width": {
"render": "8"
}
} }
], ],
"deletion": true, "deletion": true,

View file

@ -169,9 +169,7 @@
"point", "point",
"centroid" "centroid"
], ],
"iconSize": { "iconSize": "40,40,center",
"render": "40,40,center"
},
"label": { "label": {
"mappings": [ "mappings": [
{ {

View file

@ -222,9 +222,7 @@
} }
] ]
}, },
"iconSize": { "iconSize": "35,35,center",
"render": "35,35,center"
},
"location": [ "location": [
"point" "point"
] ]
@ -239,12 +237,8 @@
} }
] ]
}, },
"width": { "width": "3",
"render": "3" "dashArray": "5 5"
},
"dashArray": {
"render": "5 5"
}
} }
] ]
} }

View file

@ -846,9 +846,7 @@
} }
] ]
}, },
"iconSize": { "iconSize": "40,40,bottom",
"render": "40,40,bottom"
},
"location": [ "location": [
"point", "point",
"centroid" "centroid"

View file

@ -76,12 +76,8 @@
"presets": [], "presets": [],
"mapRendering": [ "mapRendering": [
{ {
"icon": { "icon": "./assets/layers/visitor_information_centre/information.svg",
"render": "./assets/layers/visitor_information_centre/information.svg" "iconSize": "40,40,center",
},
"iconSize": {
"render": "40,40,center"
},
"location": [ "location": [
"point", "point",
"centroid" "centroid"

View file

@ -34,22 +34,14 @@
"shownByDefault": false, "shownByDefault": false,
"mapRendering": [ "mapRendering": [
{ {
"color": { "color": "#fff",
"render": "#fff"
},
"fill": "no", "fill": "no",
"width": { "width": "3"
"render": "3"
}
}, },
{ {
"color": { "color": "#333",
"render": "#333"
},
"fill": "no", "fill": "no",
"width": { "width": "2"
"render": "2"
}
} }
], ],
"calculatedTags": [ "calculatedTags": [

View file

@ -376,9 +376,7 @@
}, },
"mapRendering": [ "mapRendering": [
{ {
"icon": { "icon": "./assets/themes/waste_basket/waste_basket.svg",
"render": "./assets/themes/waste_basket/waste_basket.svg"
},
"iconSize": { "iconSize": {
"render": "40,40,center", "render": "40,40,center",
"mappings": [ "mappings": [
@ -408,12 +406,8 @@
] ]
}, },
{ {
"color": { "color": "#00f",
"render": "#00f" "width": "8"
},
"width": {
"render": "8"
}
} }
] ]
} }

View file

@ -91,12 +91,8 @@
], ],
"mapRendering": [ "mapRendering": [
{ {
"icon": { "icon": "circle:#ffffff;./assets/themes/buurtnatuur/nature_reserve.svg",
"render": "circle:#ffffff;./assets/themes/buurtnatuur/nature_reserve.svg" "iconSize": "50,50,center",
},
"iconSize": {
"render": "50,50,center"
},
"location": [ "location": [
"point" "point"
] ]
@ -129,9 +125,7 @@
} }
] ]
}, },
"width": { "width": "5"
"render": "5"
}
} }
] ]
}, },
@ -203,12 +197,8 @@
], ],
"mapRendering": [ "mapRendering": [
{ {
"icon": { "icon": "circle:#ffffff;./assets/themes/buurtnatuur/park.svg",
"render": "circle:#ffffff;./assets/themes/buurtnatuur/park.svg" "iconSize": "40,40,center",
},
"iconSize": {
"render": "40,40,center"
},
"location": [ "location": [
"point" "point"
] ]
@ -228,9 +218,7 @@
} }
] ]
}, },
"width": { "width": "5"
"render": "5"
}
} }
] ]
}, },
@ -303,12 +291,8 @@
], ],
"mapRendering": [ "mapRendering": [
{ {
"icon": { "icon": "circle:#ffffff;./assets/themes/buurtnatuur/forest.svg",
"render": "circle:#ffffff;./assets/themes/buurtnatuur/forest.svg" "iconSize": "40,40,center",
},
"iconSize": {
"render": "40,40,center"
},
"location": [ "location": [
"point" "point"
] ]
@ -346,9 +330,7 @@
} }
] ]
}, },
"width": { "width": "5"
"render": "5"
}
} }
] ]
}, },

View file

@ -872,21 +872,15 @@
} }
] ]
}, },
"iconSize": { "iconSize": "40,40,center",
"render": "40,40,center"
},
"location": [ "location": [
"point", "point",
"centroid" "centroid"
] ]
}, },
{ {
"color": { "color": "#00f",
"render": "#00f" "width": "8"
},
"width": {
"render": "8"
}
} }
] ]
}, },
@ -1453,23 +1447,15 @@
], ],
"mapRendering": [ "mapRendering": [
{ {
"icon": { "icon": "circle:white;./assets/themes/campersite/sanitary_dump_station.svg",
"render": "circle:white;./assets/themes/campersite/sanitary_dump_station.svg" "iconSize": "32,32,center",
},
"iconSize": {
"render": "32,32,center"
},
"location": [ "location": [
"point" "point"
] ]
}, },
{ {
"color": { "color": "#00f",
"render": "#00f" "width": "8"
},
"width": {
"render": "8"
}
} }
] ]
} }

View file

@ -243,9 +243,7 @@
} }
] ]
}, },
"width": { "width": "4",
"render": "4"
},
"dashArray": { "dashArray": {
"render": "", "render": "",
"mappings": [ "mappings": [

View file

@ -79,12 +79,8 @@
}, },
"mapRendering": [ "mapRendering": [
{ {
"width": { "width": "4",
"render": "4" "color": "#00a703"
},
"color": {
"render": "#00a703"
}
} }
], ],
"tagRenderings": [ "tagRenderings": [

View file

@ -135,4 +135,4 @@
} }
} }
] ]
} }

View file

@ -600,9 +600,7 @@
"then": "circle:white;./assets/themes/facadegardens/bloei.svg" "then": "circle:white;./assets/themes/facadegardens/bloei.svg"
} }
], ],
"iconSize": { "iconSize": "50,50,center",
"render": "50,50,center"
},
"location": [ "location": [
"point", "point",
"centroid" "centroid"

View file

@ -53,23 +53,15 @@
], ],
"mapRendering": [ "mapRendering": [
{ {
"icon": { "icon": "./assets/themes/buurtnatuur/forest.svg",
"render": "./assets/themes/buurtnatuur/forest.svg" "iconSize": "40,40,center",
},
"iconSize": {
"render": "40,40,center"
},
"location": [ "location": [
"point" "point"
] ]
}, },
{ {
"color": { "color": "#00f",
"render": "#00f" "width": "8"
},
"width": {
"render": "8"
}
} }
] ]
}, },
@ -164,23 +156,15 @@
], ],
"mapRendering": [ "mapRendering": [
{ {
"icon": { "icon": "./assets/themes/fruit_trees/fruit_tree.svg",
"render": "./assets/themes/fruit_trees/fruit_tree.svg" "iconSize": "40,40,center",
},
"iconSize": {
"render": "40,40,center"
},
"location": [ "location": [
"point" "point"
] ]
}, },
{ {
"color": { "color": "#00f",
"render": "#00f" "width": "8"
},
"width": {
"render": "8"
}
} }
] ]
} }

View file

@ -579,12 +579,8 @@
}, },
"mapRendering": [ "mapRendering": [
{ {
"color": { "color": "#ccc",
"render": "#ccc" "width": "1",
},
"width": {
"render": "1"
},
"fill": "no" "fill": "no"
} }
], ],
@ -777,4 +773,4 @@
"overpassMaxZoom": 15, "overpassMaxZoom": 15,
"osmApiTileSize": 17, "osmApiTileSize": 17,
"credits": "Pieter Vander Vennet" "credits": "Pieter Vander Vennet"
} }

View file

@ -93,9 +93,7 @@
} }
] ]
}, },
"iconSize": { "iconSize": "40,40,center"
"render": "40,40,center"
}
} }
], ],
"title": "OSM-gebouw", "title": "OSM-gebouw",

View file

@ -514,4 +514,4 @@
] ]
}, },
"enableDownload": true "enableDownload": true
} }

View file

@ -220,4 +220,4 @@
} }
], ],
"credits": "Niels Elgaard Larsen" "credits": "Niels Elgaard Larsen"
} }

View file

@ -124,12 +124,8 @@
] ]
}, },
{ {
"color": { "color": "#00f",
"render": "#00f" "width": "4",
},
"width": {
"render": "4"
},
"fill": "no", "fill": "no",
"dashArray": "8 8" "dashArray": "8 8"
} }
@ -204,9 +200,7 @@
"mapRendering": [ "mapRendering": [
{ {
"icon": "./assets/themes/postal_codes/townhall.svg", "icon": "./assets/themes/postal_codes/townhall.svg",
"iconSize": { "iconSize": "40,40,center",
"render": "40,40,center"
},
"location": [ "location": [
"point", "point",
"centroid" "centroid"

View file

@ -246,9 +246,7 @@
}, },
{ {
"#": "left", "#": "left",
"color": { "color": "#888",
"render": "#888"
},
"dashArray": { "dashArray": {
"render": "", "render": "",
"mappings": [ "mappings": [

View file

@ -40,9 +40,7 @@
"mapRendering": [ "mapRendering": [
{ {
"color": "#444444", "color": "#444444",
"width": { "width": "1"
"render": "1"
}
} }
] ]
}, },
@ -238,9 +236,7 @@
} }
] ]
}, },
"width": { "width": "9"
"render": "9"
}
} }
] ]
} }

View file

@ -404,4 +404,4 @@
] ]
} }
] ]
} }

View file

@ -247,4 +247,4 @@
"hideFromOverview": true, "hideFromOverview": true,
"enableMoreQuests": false, "enableMoreQuests": false,
"enableShareScreen": false "enableShareScreen": false
} }

View file

@ -182,9 +182,7 @@
} }
] ]
}, },
"iconSize": { "iconSize": "40,40,center",
"render": "40,40,center"
},
"location": [ "location": [
"point", "point",
"centroid" "centroid"
@ -684,9 +682,7 @@
} }
] ]
}, },
"width": { "width": "3"
"render": "3"
}
} }
] ]
}, },