Port themes to the new format

This commit is contained in:
pietervdvn 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,
"source": {
"osmTags": "highway=residential"
"osmTags": {
"or": [
"highway=residential",
"highway=tertiary",
"highway=secondary"
]
}
},
"title": {
"render": {
@ -112,6 +118,15 @@
"color": {
"render": "#888"
},
"dasharray": {
"render": "",
"mappings": [
{
"if": "sidewalk:right=",
"then": "6,6"
}
]
},
"width": {
"render": 6,
"mappings": [
@ -131,6 +146,15 @@
},
{
"color": "#888",
"dasharray": {
"render": "",
"mappings": [
{
"if": "sidewalk:right=",
"then": "6,6"
}
]
},
"width": {
"render": 6,
"mappings": [

View file

@ -57,23 +57,27 @@
},
"name": "Addresses to check",
"minzoom": 14,
"wayHandling": 1,
"icon": {
"render": "./assets/themes/uk_addresses/housenumber_unknown.svg",
"mappings": [
{
"if": "_embedding_object:id~*",
"then": "./assets/themes/uk_addresses/housenumber_unknown_small.svg"
"mapRendering": [
{
"location": "point",
"icon": {
"render": "./assets/themes/uk_addresses/housenumber_unknown.svg",
"mappings": [
{
"if": "_embedding_object:id~*",
"then": "./assets/themes/uk_addresses/housenumber_unknown_small.svg"
},
{
"if": "_imported=yes",
"then": "./assets/themes/uk_addresses/housenumber_unknown_small.svg"
}
]
},
{
"if": "_imported=yes",
"then": "./assets/themes/uk_addresses/housenumber_unknown_small.svg"
"iconSize": {
"render": "40,40,center"
}
]
},
"iconSize": {
"render": "40,40,center"
},
}
],
"title": {
"render": "Address to be determined"
},
@ -225,50 +229,55 @@
}
}
],
"icon": {
"render": "./assets/themes/uk_addresses/housenumber_ok.svg",
"mappings": [
{
"if": {
"or": [
{
"and": [
"addr:housenumber=",
"nohousenumber!=yes"
"mapRendering": [
{
"location": "point",
"icon": {
"render": "./assets/themes/uk_addresses/housenumber_ok.svg",
"mappings": [
{
"if": {
"or": [
{
"and": [
"addr:housenumber=",
"nohousenumber!=yes"
]
},
"addr:street="
]
},
"addr:street="
]
},
"then": "./assets/themes/uk_addresses/housenumber_unknown.svg"
}
]
},
"width": {
"render": "8"
},
"iconSize": {
"render": "40,40,center"
},
"color": {
"render": "#00f",
"mappings": [
{
"if": {
"or": [
{
"and": [
"addr:housenumber=",
"nohousenumber!=yes"
"then": "./assets/themes/uk_addresses/housenumber_unknown.svg"
}
]
},
"width": {
"render": "8"
},
"iconSize": {
"render": "40,40,center"
},
"color": {
"render": "#00f",
"mappings": [
{
"if": {
"or": [
{
"and": [
"addr:housenumber=",
"nohousenumber!=yes"
]
},
"addr:street="
]
},
"addr:street="
]
},
"then": "#ff0"
"then": "#ff0"
}
]
}
]
}
}
]
},
{
"id": "named_streets",
@ -281,12 +290,17 @@
]
}
},
"color": {
"render": "#ccc"
},
"width": {
"render": "0"
}
"mapRendering": [
{
"location": "point",
"color": {
"render": "#ccc"
},
"width": {
"render": "0"
}
}
]
}
],
"enableShareScreen": false,