Skip to content

Commit

Permalink
Themes: add shoe repair services to the climbing map, add question if…
Browse files Browse the repository at this point in the history
… a shoemaker also repairs climbing shoes, add craft=shoemaker to shops theme
  • Loading branch information
pietervdvn committed Jun 30, 2023
1 parent 6a1ad6a commit 3df5727
Show file tree
Hide file tree
Showing 2 changed files with 109 additions and 3 deletions.
19 changes: 17 additions & 2 deletions assets/layers/shops/shops.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,13 @@
"source": {
"osmTags": {
"and": [
"shop~*",
{
"or": [
"shop~*",
"craft=shoe_repair",
"craft=key_cutter"
]
},
"shop!=mall"
]
}
Expand Down Expand Up @@ -128,7 +134,8 @@
"addExtraTags": [
"fixme=freeform shop key used, to be reviewed"
]
}
},
"condition": "craft="
}
},
"opening_hours",
Expand Down Expand Up @@ -333,6 +340,14 @@
]
},
"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"
}
]
}
Expand Down
93 changes: 92 additions & 1 deletion assets/themes/climbing/climbing.json
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,98 @@
"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>"
}
}

0 comments on commit 3df5727

Please sign in to comment.