Relinting themes, move rendering info to 'mapRendering'

This commit is contained in:
Pieter Vander Vennet 2021-11-04 22:31:14 +01:00
parent f1f955233b
commit d3de5475cd
11 changed files with 573 additions and 420 deletions

View file

@ -177,31 +177,6 @@
"id": "hackerspaces-start_date"
}
],
"icon": {
"render": "./assets/themes/hackerspaces/glider.svg",
"mappings": [
{
"if": {
"and": [
"hackerspace=makerspace"
]
},
"then": {
"en": "./assets/themes/hackerspaces/led.png",
"de": "./assets/themes/hackerspaces/led.png"
}
}
]
},
"width": {
"render": "8"
},
"iconSize": {
"render": "40,40,center"
},
"color": {
"render": "#00f"
},
"presets": [
{
"tags": [
@ -231,14 +206,48 @@
}
}
],
"wayHandling": 2,
"source": {
"osmTags": {
"and": [
"leisure=hackerspace"
]
}
}
},
"mapRendering": [
{
"icon": {
"render": "./assets/themes/hackerspaces/glider.svg",
"mappings": [
{
"if": {
"and": [
"hackerspace=makerspace"
]
},
"then": {
"en": "./assets/themes/hackerspaces/led.png",
"de": "./assets/themes/hackerspaces/led.png"
}
}
]
},
"iconSize": {
"render": "40,40,center"
},
"location": [
"point",
"centroid"
]
},
{
"color": {
"render": "#00f"
},
"width": {
"render": "8"
}
}
]
}
]
}