Port themes to the new format

This commit is contained in:
Pieter Vander Vennet 2021-10-28 00:53:29 +02:00
parent 40a0e7931d
commit 85174461b4
2 changed files with 99 additions and 61 deletions

View file

@ -28,7 +28,13 @@
}, },
"minzoom": 12, "minzoom": 12,
"source": { "source": {
"osmTags": "highway=residential" "osmTags": {
"or": [
"highway=residential",
"highway=tertiary",
"highway=secondary"
]
}
}, },
"title": { "title": {
"render": { "render": {
@ -112,6 +118,15 @@
"color": { "color": {
"render": "#888" "render": "#888"
}, },
"dasharray": {
"render": "",
"mappings": [
{
"if": "sidewalk:right=",
"then": "6,6"
}
]
},
"width": { "width": {
"render": 6, "render": 6,
"mappings": [ "mappings": [
@ -131,6 +146,15 @@
}, },
{ {
"color": "#888", "color": "#888",
"dasharray": {
"render": "",
"mappings": [
{
"if": "sidewalk:right=",
"then": "6,6"
}
]
},
"width": { "width": {
"render": 6, "render": 6,
"mappings": [ "mappings": [

View file

@ -57,7 +57,9 @@
}, },
"name": "Addresses to check", "name": "Addresses to check",
"minzoom": 14, "minzoom": 14,
"wayHandling": 1, "mapRendering": [
{
"location": "point",
"icon": { "icon": {
"render": "./assets/themes/uk_addresses/housenumber_unknown.svg", "render": "./assets/themes/uk_addresses/housenumber_unknown.svg",
"mappings": [ "mappings": [
@ -73,7 +75,9 @@
}, },
"iconSize": { "iconSize": {
"render": "40,40,center" "render": "40,40,center"
}, }
}
],
"title": { "title": {
"render": "Address to be determined" "render": "Address to be determined"
}, },
@ -225,6 +229,9 @@
} }
} }
], ],
"mapRendering": [
{
"location": "point",
"icon": { "icon": {
"render": "./assets/themes/uk_addresses/housenumber_ok.svg", "render": "./assets/themes/uk_addresses/housenumber_ok.svg",
"mappings": [ "mappings": [
@ -269,6 +276,8 @@
} }
] ]
} }
}
]
}, },
{ {
"id": "named_streets", "id": "named_streets",
@ -281,6 +290,9 @@
] ]
} }
}, },
"mapRendering": [
{
"location": "point",
"color": { "color": {
"render": "#ccc" "render": "#ccc"
}, },
@ -288,6 +300,8 @@
"render": "0" "render": "0"
} }
} }
]
}
], ],
"enableShareScreen": false, "enableShareScreen": false,
"enableMoreQuests": false "enableMoreQuests": false