From 1f348c6d8386049de1d70b0b863c8de986de41a1 Mon Sep 17 00:00:00 2001 From: Niklas Vogel Date: Wed, 10 Jul 2024 08:54:17 +0200 Subject: [PATCH] add layers firepit and bbq --- assets/layers/bbq/bbq.json | 191 +++++++++++++++++++++++++ assets/layers/firepit/firepit.json | 154 ++++++++++++++++++++ assets/themes/fireplace/fireplace.json | 4 +- 3 files changed, 347 insertions(+), 2 deletions(-) create mode 100644 assets/layers/bbq/bbq.json create mode 100644 assets/layers/firepit/firepit.json diff --git a/assets/layers/bbq/bbq.json b/assets/layers/bbq/bbq.json new file mode 100644 index 000000000..59cab667c --- /dev/null +++ b/assets/layers/bbq/bbq.json @@ -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 +} diff --git a/assets/layers/firepit/firepit.json b/assets/layers/firepit/firepit.json new file mode 100644 index 000000000..79f8d28fc --- /dev/null +++ b/assets/layers/firepit/firepit.json @@ -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 +} diff --git a/assets/themes/fireplace/fireplace.json b/assets/themes/fireplace/fireplace.json index 85ade9d1e..a5c13081a 100644 --- a/assets/themes/fireplace/fireplace.json +++ b/assets/themes/fireplace/fireplace.json @@ -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" ] }