Themes: add shoe repair services to the climbing map, add question if a shoemaker also repairs climbing shoes, add craft=shoemaker to shops theme

This commit is contained in:
Pieter Vander Vennet 2023-06-30 02:32:57 +02:00
parent 6a1ad6a2ec
commit 3df5727f40
2 changed files with 109 additions and 3 deletions

View file

@ -16,7 +16,13 @@
"source": { "source": {
"osmTags": { "osmTags": {
"and": [ "and": [
"shop~*", {
"or": [
"shop~*",
"craft=shoe_repair",
"craft=key_cutter"
]
},
"shop!=mall" "shop!=mall"
] ]
} }
@ -128,7 +134,8 @@
"addExtraTags": [ "addExtraTags": [
"fixme=freeform shop key used, to be reviewed" "fixme=freeform shop key used, to be reviewed"
] ]
} },
"condition": "craft="
} }
}, },
"opening_hours", "opening_hours",
@ -333,6 +340,14 @@
] ]
}, },
"then": "circle:white;./assets/layers/shops/shop-disused.svg" "then": "circle:white;./assets/layers/shops/shop-disused.svg"
},
{
"if": "craft=shoemaker",
"then": "circle:white;./assets/layers/id_presets/temaki-hammer_shoe.svg"
},
{
"if": "craft=key_cutter",
"then": "circle:white;./assets/layers/id_presets/fas-key.svg"
} }
] ]
} }

View file

@ -335,7 +335,98 @@
"reviews" "reviews"
] ]
} }
},
{
"builtin": [
"shops"
],
"override": {
"id": "shops_with_climbing_shoe_repair",
"source": {
"=osmTags": {
"and": [
"service:repair:climbing_shoes=yes",
{
"or": [
"shop=shoe_repair",
"craft=shoemaker"
]
}
]
}
},
"=presets": [],
"minzoom": 8,
"+tagRenderings": [
{
"id": "repairs_climbing_shoes",
"question": {
"en": "Does this shoe repair shop repair climbing shoes?"
},
"mappings": [
{
"if": "service:repair:climbing_shoes=yes",
"then": {
"en": "This shop repairs climbing shoes"
}
},
{
"if": "service:repair:climbing_shoes=no",
"then": {
"en": "This shop does not repair climbing shoes"
}
}
]
}
]
}
},
{
"builtin": [
"shops"
],
"override": {
"=osmTags": {
"or": [
"shop=shoe_repair",
"craft=shoemaker"
]
},
"minzoom": 16,
"+tagRenderings": [
{
"id": "repairs_climbing_shoes",
"question": {
"en": "Does this shoe repair shop also repair clibming shoes?"
},
"mappings": [
{
"if": "service:repair:climbing_shoes=yes",
"then": {
"en": "This shop repairs climbing shoes"
}
},
{
"if": "service:repair:climbing_shoes=no",
"then": {
"en": "This shop does not repair climbing shoes"
}
}
]
}
],
"=presets": [
{
"tags": [
"shop=shoe_repair"
],
"title": {
"en": "a shoe repair shop"
}
}
]
}
} }
], ],
"credits": "Christian Neumann <christian@utopicode.de>" "credits": "Christian Neumann <christian@utopicode.de>"
} }