Reuse the food layer in the friture theme, add the general food layer at zoom level 19 to prevent duplicates, fixes #319

This commit is contained in:
pietervdvn 2021-09-07 00:22:39 +02:00
parent 90aaf780c8
commit e889d1eff1
2 changed files with 26 additions and 311 deletions

View file

@ -322,7 +322,7 @@
]
},
{
"#": "Vegetarion (no friture)",
"#": "Vegetarian (no friture)",
"question": {
"nl": "Heeft deze eetgelegenheid een vegetarische optie?",
"en": "Does this restaurant have a vegetarian option?"

View file

@ -28,320 +28,35 @@
"socialImage": "",
"layers": [
{
"id": "fritures",
"name": {
"nl": "Frituren",
"fr": "Friteries"
},
"minzoom": 8,
"source": {
"osmTags": {
"and": [
"cuisine~.*friture.*"
]
}
},
"title": {
"render": {
"nl": "Frituur",
"fr": "Friterie"
"builtin": "food",
"override": {
"id": "friture",
"name": {
"nl": "Frituren",
"en": "Fries shop",
"fr": "Friteries"
},
"mappings": [
{
"if": {
"and": [
"name~*"
]
},
"then": {
"nl": " <i>{name}</i>",
"fr": " <i>{name}</i>"
}
}
]
},
"titleIcons": [
{
"condition": {
"or": [
"diet:vegetarian=yes",
"diet:vegan=yes"
"source": {
"osmTags": {
"and": [
"cuisine=friture",
{
"or": [
"amenity=fast_food",
"amenity=restaurant"
]
}
]
},
"render": "<img src='./assets/themes/fritures/Vegetarian-mark.svg'/>"
},
"defaults"
],
"tagRenderings": [
"images",
{
"render": {
"nl": "{name}",
"fr": "{name}"
},
"question": {
"en": "What is the name of this friture?",
"nl": "Wat is de naam van deze frituur?",
"fr": "Quel est le nom de cette friterie?",
"ja": "このfritureは何という名前ですか?"
},
"freeform": {
"key": "name"
}
},
{
"render": {
"nl": "<h3>Openingsuren</h3>{opening_hours_table(opening_hours)}",
"fr": "<h3>Horaires</h3>{opening_hours_table(opening_hours)}"
},
"question": {
"nl": "Wat zijn de openinguren van deze frituur?",
"fr": "Quand est ce-que ce friterie ouvert?"
},
"freeform": {
"key": "opening_hours",
"type": "opening_hours"
}
},
{
"render": {
"en": "<a href='{website}'>{website}</a>",
"ca": "<a href='{website}'>{website}</a>",
"fr": "<a href='{website}'>{website}</a>",
"id": "<a href='{website}'>{website}</a>",
"ru": "<a href='{website}'>{website}</a>",
"ja": "<a href='{website}'>{website}</a>",
"it": "<a href='{website}'>{website}</a>"
},
"question": {
"en": "What is the website of this shop?",
"nl": "Wat is de website van deze frituur?",
"fr": "Quel est le site web de cette friterie?",
"ja": "このお店のホームページは何ですか?",
"it": "Qual è il sito web di questo negozio?",
"ru": "Какой веб-сайт у этого магазина?"
},
"freeform": {
"key": "website",
"type": "url"
}
},
{
"render": {
"nl": "<a href='tel:{phone}'>{phone}</a>",
"fr": "<a href='tel:{phone}'>{phone}</a>"
},
"question": {
"en": "What is the phone number?",
"nl": "Wat is het telefoonnummer van deze frituur?",
"fr": "Quel est le numéro de téléphone de cette friterie?",
"ja": "電話番号は何番ですか?",
"nb_NO": "Hva er telefonnummeret?",
"it": "Qual è il numero di telefono?",
"ru": "Какой телефон?"
},
"freeform": {
"key": "phone",
"type": "phone"
}
},
{
"question": {
"nl": "Heeft deze frituur vegetarische snacks?",
"fr": "Cette friterie est-elle équipée de snacks végétariens ?"
},
"mappings": [
{
"if": {
"and": [
"diet:vegetarian=yes"
]
},
"then": {
"nl": "Er zijn vegetarische snacks aanwezig",
"fr": "Des collations végétariennes sont disponibles"
}
},
{
"if": {
"and": [
"diet:vegetarian=limited"
]
},
"then": {
"nl": "Slechts enkele vegetarische snacks",
"fr": "Quelques snacks végétariens seulement"
}
},
{
"if": {
"and": [
"diet:vegetarian=no"
]
},
"then": {
"nl": "Geen vegetarische snacks beschikbaar",
"fr": "Pas d'en-cas végétariens disponibles"
}
}
]
},
{
"question": {
"nl": "Heeft deze frituur veganistische snacks?",
"fr": "Cette friterie est-elle équipée de snacks végétaliens ?"
},
"mappings": [
{
"if": {
"and": [
"diet:vegan=yes"
]
},
"then": {
"nl": "Er zijn veganistische snacks aanwezig",
"fr": "Des collations végétaliens sont disponibles"
}
},
{
"if": {
"and": [
"diet:vegan=limited"
]
},
"then": {
"nl": "Slechts enkele veganistische snacks",
"fr": "Quelques snacks végétaliens seulement"
}
},
{
"if": {
"and": [
"diet:vegetarian=no"
]
},
"then": {
"nl": "Geen veganistische snacks beschikbaar",
"fr": "Pas d'en-cas végétaliens disponibles"
}
}
]
},
{
"question": {
"nl": "Bakt deze frituur met dierlijk vet of met plantaardige olie?",
"fr": "Cette friteuse fonctionne-t-elle avec de la graisse animale ou végétale ?"
},
"mappings": [
{
"if": {
"and": [
"friture:oil=vegetable"
]
},
"then": {
"nl": "Plantaardige olie",
"fr": "Huile végétale"
}
},
{
"if": {
"and": [
"friture:oil=animal"
]
},
"then": {
"nl": "Dierlijk vet",
"fr": "Graisse animale"
}
}
]
},
{
"question": {
"nl": "Als je je eigen container (bv. kookpot of kleine potjes voor saus) meeneemt, gebruikt de frituur deze dan om je bestelling in te doen?",
"en": "If you bring your own container (such as a cooking pot and small pots), is it used to package your order?<br/>",
"ja": "お客様が持参容器(調理用の鍋や小さな鍋など)をもってきた場合は、注文の梱包に使用されますか?<br/>",
"fr": "Est-il proposé dutiliser ses propres contenants pour sa commande ?<br/>"
},
"mappings": [
{
"if": "reusable_packaging:accept=yes",
"then": {
"nl": "Je mag je <b>eigen containers</b> meenemen om je bestelling in mee te nemen en zo minder afval te maken",
"en": "You can bring <b>your own containers</b> to get your order, saving on single-use packaging material and thus waste",
"ja": "<b>自分の容器</b>を持ってきて、注文を受け取ることができ、使い捨ての梱包材を節約して、無駄を省くことができます",
"fr": "Vous pouvez <b>apporter vos contenants</b> pour votre commande, limitant lusage de matériaux à usage unique et les déchets"
}
},
{
"if": "reusable_packaging:accept=no",
"then": {
"nl": "Je mag <b>geen</b> eigen containers meenemen om je bestelling in mee te nemen",
"en": "Bringing your own container is <b>not allowed</b>",
"ja": "独自の容器を持参することは<b>できません</b>",
"ru": "Приносить свою тару <b>не разрешено</b>",
"fr": "Apporter ses propres contenants <b>nest pas permis</b>"
}
},
{
"if": "reusable_packaging:accept=only",
"then": {
"nl": "Je <b>moet</b> je eigen containers meenemen om je bestelling in mee te nemen.",
"en": "You <b>must</b> bring your own container to order here.",
"ja": "自身の容器が注文に<b>必要</b>。",
"fr": "Il est <b>obligatoire</b> dapporter ses propres contenants"
}
}
]
},
"questions",
"reviews"
],
"icon": {
"render": "./assets/themes/fritures/fries.svg"
},
"iconOverlays": [
{
"if": "opening_hours~*",
"then": "isOpen",
"badge": true
},
{
"if": {
"or": [
"diet:vegetarian=yes",
"diet:vegan=yes"
]
},
"then": {
"render": "circle:white;./assets/themes/fritures/Vegetarian-mark.svg"
},
"badge": true
}
],
"width": {
"render": "8"
},
"iconSize": {
"render": "40,40,center"
},
"color": {
"render": "#00f"
},
"presets": [
{
"title": {
"nl": "Frituur",
"fr": "Friturie"
},
"tags": [
"amenity=fast_food",
"cuisine=friture"
]
}
],
"wayHandling": 1
}
},
{
"builtin": "food",
"override": {
"minzoom": 19,
"filter": null
}
}
],
"roamingRenderings": []