add layers firepit and bbq

This commit is contained in:
Niklas Vogel 2024-07-10 08:54:17 +02:00
parent 107104e537
commit 1f348c6d83
3 changed files with 347 additions and 2 deletions

191
assets/layers/bbq/bbq.json Normal file
View file

@ -0,0 +1,191 @@
{
"id": "bbq",
"name": {
"en": "BBQ",
"de": "Grillstelle"
},
"description": {
"de": "Ein ortsfest installierter Grill, typischerweise öffentlich zugänglich.",
"en": "A permanently installed barbecue, typically accessible to the public."
},
"source": {
"osmTags": "amenity=bbq"
},
"minzoom": 12,
"title": {
"render": {
"en": "BBQ",
"de": "Grillstelle"
}
},
"titleIcons": [
"icons.defaults"
],
"pointRendering": [
{
"iconSize": "40,40",
"location": [
"point",
"centroid"
],
"anchor": "bottom",
"marker": [
{
"icon": "square_rounded",
"color": "#66332B"
},
{
"icon": "./assets/layers/assembly_point/fire.svg"
}
]
}
],
"presets": [
{
"title": {
"en": "BBQ",
"de": "Grillstelle"
},
"description": {
"de": "Ein ortsfest installierter Grill, typischerweise öffentlich zugänglich.",
"en": "A permanently installed barbecue, typically accessible to the public."
},
"tags": [
"amenity=bbq"
]
}
],
"tagRenderings": [
"images",
{
"id": "access",
"question": {
"en": "What is the permitted access?",
"de": "Was ist der erlaubte Zugang?"
},
"mappings": [
{
"if": "access=yes",
"then": {
"de": "Öffentlich",
"en": "Public"
}
},
{
"if": "access=no",
"then": {
"de": "Kein Zugang",
"en": "No access"
}
},
{
"if": "access=private",
"then": {
"de": "Privat",
"en": "Private"
}
},
{
"if": "access=permissive",
"then": {
"de": "Zugang bis auf Widerruf",
"en": "Access until revoked"
}
},
{
"if": "access=customers",
"then": {
"de": "Zugang nur für Kunden",
"en": "Access only for customers"
}
},
{
"if": "access=permit",
"then": {
"de": "Zugang nur für Berechtigte",
"en": "Access only for authorized"
}
},
{
"if": "access=unknown",
"then": {
"de": "unbekannt",
"en": "Unknown"
}
}
]
},
{
"id": "covered",
"question": {
"en": "Is the grill covered?",
"de": "Ist die Grillstelle überdacht?"
},
"mappings": [
{
"if": "covered=no",
"then": {
"de": "Die Grillstelle ist nicht überdacht",
"en": "The grill is not covered"
}
},
{
"if": "covered=yes",
"then": {
"de": "Die Grillstelle ist überdacht",
"en": "The grill is covered"
}
},
{
"if": "covered=unknown",
"then": {
"de": "unbekannt",
"en": "Unknown"
}
}
]
},
{
"id": "fuel",
"question": {
"en": "How ist the grill fueled?",
"de": "Mit was wird die Grillstelle angefeuert?"
},
"mappings": [
{
"if": "fuel=wood",
"then": {
"de": "Holz",
"en": "Wood"
}
},
{
"if": "fuel=charcoal",
"then": {
"de": "Kohle",
"en": "Charcoal"
}
},
{
"if": "fuel=electric",
"then": {
"de": "Elektronisch",
"en": "Electric"
}
},
{
"if": "fuel=gas",
"then": {
"de": "Gas",
"en": "Gas"
}
}
]
}
],
"allowMove": {
"enableRelocation": false,
"enableImproveAccuracy": true
},
"passAllFeatures": false
}

View file

@ -0,0 +1,154 @@
{
"id": "firepit",
"name": {
"en": "Firepitd",
"de": "Feuerstelle"
},
"description": {
"en": "An outdoor place to make a fire, typically open to the public.",
"de": "Eine Stelle im Freien zum Feuermachen, typischerweise öffentlich zugänglich."
},
"source": {
"osmTags": "leisure=firepit"
},
"minzoom": 12,
"title": {
"render": {
"en": "Firepit",
"de": "Feuerstelle"
}
},
"titleIcons": [
"icons.defaults"
],
"pointRendering": [
{
"iconSize": "40,40",
"location": [
"point",
"centroid"
],
"anchor": "bottom",
"marker": [
{
"icon": "square_rounded",
"color": "#f00000"
},
{
"icon": "./assets/layers/assembly_point/fire.svg"
}
]
}
],
"presets": [
{
"title": {
"en": "Firepit",
"de": "Feuerstelle"
},
"description": {
"de": "Eine Stelle im Freien zum Feuermachen, typischerweise öffentlich zugänglich.",
"en": "An outdoor place to make a fire, typically open to the public."
},
"tags": [
"leisure=firepit"
]
}
],
"tagRenderings": [
"images",
{
"id": "access",
"question": {
"en": "What is the permitted access?",
"de": "Was ist der erlaubte Zugang?"
},
"mappings": [
{
"if": "access=yes",
"then": {
"de": "Öffentlich",
"en": "Public"
}
},
{
"if": "access=no",
"then": {
"de": "Kein Zugang",
"en": "No access"
}
},
{
"if": "access=private",
"then": {
"de": "Privat",
"en": "Private"
}
},
{
"if": "access=permissive",
"then": {
"de": "Zugang bis auf Widerruf",
"en": "Access until revoked"
}
},
{
"if": "access=customers",
"then": {
"de": "Zugang nur für Kunden",
"en": "Access only for customers"
}
},
{
"if": "access=permit",
"then": {
"de": "Zugang nur für Berechtigte",
"en": "Access only for authorized"
}
},
{
"if": "access=unknown",
"then": {
"de": "unbekannt",
"en": "Unknown"
}
}
]
},
{
"id": "seasonal",
"question": {
"en": "Is the firepit seasonal?",
"de": "Ist die Feuerstelle saisonal?"
},
"mappings": [
{
"if": "seasonal=no",
"then": {
"de": "Die Feuerstelle ist nicht saisonal",
"en": "The firepit is not seasonal"
}
},
{
"if": "seasonal=yes",
"then": {
"de": "Die Feuerstelle ist saisonal",
"en": "The firepit is seasonal"
}
},
{
"if": "seasonal=unknown",
"then": {
"de": "unbekannt",
"en": "Unknown"
}
}
]
}
],
"allowMove": {
"enableRelocation": false,
"enableImproveAccuracy": true
},
"passAllFeatures": false
}

View file

@ -10,7 +10,7 @@
},
"icon": "./assets/layers/assembly_point/fire.svg",
"layers": [
"https://studio.mapcomplete.org/20107792/layers/firepit/firepit.json",
"https://studio.mapcomplete.org/20107792/layers/bbq/bbq.json"
"firepit",
"bbq"
]
}