Linting themes

This commit is contained in:
Pieter Vander Vennet 2021-10-22 14:24:30 +02:00
parent e334f806bc
commit 02a1d9696f
12 changed files with 311 additions and 123 deletions

View file

@ -972,64 +972,8 @@
"mapRendering": [
{
"location": [
"point",
"centroid"
],
"icon": {
"render": "pin:#fff;./assets/themes/charging_stations/plug.svg",
"mappings": [
{
"if": "bicycle=yes",
"then": "pin:#fff;./assets/themes/charging_stations/bicycle.svg"
},
{
"if": {
"or": [
"car=yes",
"motorcar=yes"
]
},
"then": "pin:#fff;./assets/themes/charging_stations/car.svg"
}
]
},
"iconBadges": [
{
"if": {
"or": [
"disused:amenity=charging_station",
"operational_status=broken"
]
},
"then": "cross:#c22;"
},
{
"if": {
"or": [
"proposed:amenity=charging_station",
"planned:amenity=charging_station"
]
},
"then": "./assets/layers/charging_station/under_construction.svg"
},
{
"if": {
"and": [
"bicycle=yes",
{
"or": [
"motorcar=yes",
"car=yes"
]
}
]
},
"then": "circle:#fff;./assets/themes/charging_stations/car.svg"
}
],
"iconSize": {
"render": "50,50,bottom"
}
"point"
]
}
]
}

View file

@ -33,8 +33,7 @@
"operational_status=closed"
]
},
"then": "close:#c33",
"badge": true
"then": "close:#c33"
}
],
"iconSize": "40,40,bottom",

View file

@ -35,8 +35,7 @@
"iconOverlays": [
{
"if": "opening_hours~*",
"then": "isOpen",
"badge": true
"then": "isOpen"
},
{
"if": {
@ -47,8 +46,7 @@
},
"then": {
"render": "circle:white;./assets/themes/fritures/Vegetarian-mark.svg"
},
"badge": true
}
}
],
"label": {

View file

@ -482,8 +482,7 @@
"opening_hours~*"
]
},
"then": "isOpen",
"badge": true
"then": "isOpen"
}
],
"width": {

View file

@ -280,8 +280,7 @@
"iconOverlays": [
{
"if": "opening_hours~*",
"then": "isOpen",
"badge": true
"then": "isOpen"
}
],
"width": {

View file

@ -423,8 +423,7 @@
"opening_hours~*"
]
},
"then": "isOpen",
"badge": true
"then": "isOpen"
},
{
"if": {
@ -434,8 +433,7 @@
"access=no"
]
},
"then": "circle:white;./assets/layers/sport_pitch/lock.svg",
"badge": true
"then": "circle:white;./assets/layers/sport_pitch/lock.svg"
}
],
"width": {