Themes: add filter for vegetable oil to fritures theme

This commit is contained in:
Pieter Vander Vennet 2023-12-22 19:06:20 +01:00
parent 6da72b80ef
commit 721a930d76
3 changed files with 45 additions and 4 deletions

View file

@ -30,7 +30,8 @@
},
"icon": "./assets/layers/food/restaurant.svg",
"layers": [
"food"
"food",
"ice_cream"
],
"widenFactor": 3
}
}

View file

@ -56,7 +56,32 @@
}
]
}
}
},
"filter+": [
{
"id": "oil-type",
"options": [
{
"question": {
"en": "No oil type preference"
}
},
{
"question": {
"en": "Only show fritures using vegetable oil"
},
"osmTags": "friture:oil=vegetable"
},
{
"question": {
"en": "Only show fritures using animal oil"
},
"osmTags": "friture:oil=animal"
}
]
}
]
}
},
{
@ -69,4 +94,4 @@
}
],
"widenFactor": 3
}
}

View file

@ -781,6 +781,21 @@
"layers": {
"0": {
"override": {
"filter+": {
"0": {
"options": {
"0": {
"question": "No oil type preference"
},
"1": {
"question": "Only show fritures using vegetable oil"
},
"2": {
"question": "Only show fritures using animal oil"
}
}
}
},
"name": "Fries shop"
}
}