Merge pull request #1196 from pietervdvn/RobinLinde-patch-2

More tweaks to OnWheels parking
This commit is contained in:
Pieter Vander Vennet 2022-12-28 00:46:46 +01:00 committed by GitHub
commit 53addb2518
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 36 additions and 4 deletions

View file

@ -171,7 +171,16 @@
"en": "Parking Space", "en": "Parking Space",
"de": "Stellplatz", "de": "Stellplatz",
"nl": "Parkeerplek" "nl": "Parkeerplek"
} },
"mappings": [
{
"if": "parking_space=disabled",
"then": {
"en": "Disabled Parking Space",
"nl": "Parkeerplek voor gehandicapten"
}
}
]
}, },
"mapRendering": [ "mapRendering": [
{ {

View file

@ -181,7 +181,20 @@
"mapRendering": [ "mapRendering": [
{ {
"icon": "./assets/themes/onwheels/parking.svg", "icon": "./assets/themes/onwheels/parking.svg",
"iconSize": "40,40,bottom" "iconSize": {
"render": "20,20,bottom",
"mappings": [
{
"if": {
"or": [
"capacity:disabled>0",
"capacity:disabled=yes"
]
},
"then": "40,40,bottom"
}
]
}
}, },
{ {
"color": "#225f92" "color": "#225f92"
@ -199,9 +212,19 @@
{ {
"icon": { "icon": {
"mappings": null "mappings": null
} },
"iconSize": "30,30,center",
"iconBadges": [
{
"if": "parking_space=disabled",
"then": "./assets/layers/toilet/wheelchair.svg"
}
]
} }
] ],
"name": {
"en": "Disabled parking spaces"
}
}, },
"hideTagRenderingsWithLabels": [ "hideTagRenderingsWithLabels": [
"type", "type",