diff --git a/assets/layers/bbq/bbq.json b/assets/layers/bbq/bbq.json new file mode 100644 index 000000000..a7ed0f5d6 --- /dev/null +++ b/assets/layers/bbq/bbq.json @@ -0,0 +1,173 @@ +{ + "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": 8, + "title": { + "render": { + "en": "BBQ", + "de": "Grillstelle" + } + }, + "pointRendering": [ + { + "iconSize": "40,40", + "location": [ + "point", + "centroid" + ], + "anchor": "bottom", + "marker": [ + { + "icon": "circle", + "color": "white" + }, + { + "icon": "./assets/layers/bbq/bbq.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 persons" + } + } + ] + }, + { + "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" + } + } + ] + }, + { + "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 + } +} diff --git a/assets/layers/bbq/bbq.svg b/assets/layers/bbq/bbq.svg new file mode 100644 index 000000000..c540b7d69 --- /dev/null +++ b/assets/layers/bbq/bbq.svg @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/assets/layers/bbq/bbq.svg.license b/assets/layers/bbq/bbq.svg.license new file mode 100644 index 000000000..0cf6926f1 --- /dev/null +++ b/assets/layers/bbq/bbq.svg.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Maki +SPDX-License-Identifier: CC0-1.0 \ No newline at end of file diff --git a/assets/layers/bbq/license_info.json b/assets/layers/bbq/license_info.json new file mode 100644 index 000000000..51d95c947 --- /dev/null +++ b/assets/layers/bbq/license_info.json @@ -0,0 +1,12 @@ +[ + { + "path": "bbq.svg", + "license": "CC0-1.0", + "authors": [ + "Maki" + ], + "sources": [ + "https://labs.mapbox.com/maki-icons/" + ] + } +] \ No newline at end of file diff --git a/assets/layers/drinking_water/drinking_water.json b/assets/layers/drinking_water/drinking_water.json index 8862186ee..296004db3 100644 --- a/assets/layers/drinking_water/drinking_water.json +++ b/assets/layers/drinking_water/drinking_water.json @@ -329,41 +329,16 @@ ] }, { - "id": "seasonal", - "question": { - "en": "Is this drinking water point available all year round?", - "nl": "Is dit drinkwaterpunt heel het jaar door beschikbaar?", - "de": "Ist die Trinkwasserstelle ganzjährig in Betrieb?" - }, - "mappings": [ - { - "if": "seasonal=no", - "then": { - "en": "This drinking water point is available all around the year", - "nl": "Dit drinkwaterpunt is heel het jaar door beschikbaar", - "de": "Die Trinkwasserstelle ist ganzjährig in Betrieb" - } - }, - { - "if": "seasonal=summer", - "then": { - "en": "This drinking water point is only available in summer", - "nl": "Dit drinkwaterpunt is enkel in de zomer beschikbaar", - "de": "Die Trinkwasserstelle ist nur im Sommer in Betrieb" - } - }, - { - "if": "seasonal=spring;summer;autumn", - "icon": "./assets/layers/drinking_water/no_winter.svg", - "then": { - "en": "This drinking water point is closed during the winter", - "nl": "Dit drinkwaterpunt is gesloten in de winter", - "de": "Die Trinkwasserstelle ist im Winter nicht in Betrieb" - } + "builtin": "seasonal", + "override": { + "question": { + "en": "Is this drinking water point available all year round?", + "nl": "Is dit drinkwaterpunt heel het jaar door beschikbaar?", + "de": "Ist die Trinkwasserstelle ganzjährig in Betrieb?" } - ] + } }, - { + { "builtin": "opening_hours_24_7", "override": { "questionHint": { diff --git a/assets/layers/firepit/firepit.json b/assets/layers/firepit/firepit.json new file mode 100644 index 000000000..9f046a18e --- /dev/null +++ b/assets/layers/firepit/firepit.json @@ -0,0 +1,132 @@ +{ + "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": 8, + "title": { + "render": { + "en": "Firepit", + "de": "Feuerstelle" + } + }, + "titleIcons": [ + "icons.defaults" + ], + "pointRendering": [ + { + "iconSize": "40,40", + "location": [ + "point", + "centroid" + ], + "anchor": "bottom", + "marker": [ + { + "icon": "circle", + "color": "white" + }, + { + "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" + } + } + ] + }, + { + "builtin": "seasonal", + "override": { + "question": { + "en": "Is the firepit available all around the year?", + "nl": "Is deze kampvuurplaats heel het jaar door beschikbaar?" + } + } + } + ], + "allowMove": { + "enableRelocation": false, + "enableImproveAccuracy": true + } +} diff --git a/assets/layers/questions/questions.json b/assets/layers/questions/questions.json index 30febaed0..48e4eb258 100644 --- a/assets/layers/questions/questions.json +++ b/assets/layers/questions/questions.json @@ -2755,6 +2755,40 @@ "cssClasses": "subtle m-4 italic flex items-center justify-center" } } + }, + { + "id": "seasonal", + "question": { + "en": "Is {title()} available all around the year?", + "nl": "Is {title()} heel het jaar beschikbaar?" + }, + "mappings": [ + { + "if": "seasonal=no", + "then": { + "en": "Available all around the year", + "nl": "Heel het jaar door beschikbaar", + "de": "Ganzjährig in Betrieb" + } + }, + { + "if": "seasonal=summer", + "then": { + "en": "Only available in summer", + "nl": "Enkel in de zomer beschikbaar", + "de": "Nur im Sommer in Betrieb" + } + }, + { + "if": "seasonal=spring;summer;autumn", + "icon": "./assets/layers/drinking_water/no_winter.svg", + "then": { + "en": "Closed during the winter", + "nl": "Gesloten in de winter", + "de": "Im Winter nicht in Betrieb" + } + } + ] } ] } diff --git a/assets/themes/fireplace/fireplace.json b/assets/themes/fireplace/fireplace.json new file mode 100644 index 000000000..a5c13081a --- /dev/null +++ b/assets/themes/fireplace/fireplace.json @@ -0,0 +1,16 @@ +{ + "id": "fireplace", + "title": { + "en": "Fireplaces and BBQ", + "de": "Feuerstellen und Grillstellen" + }, + "description": { + "en": "Stelle im Freien zum Feuermachen oder ein ortsfest installierter Grill an einer offizielle Stelle.", + "de": "Outdoor place to make a fire or a fixed barbecue in an official place." + }, + "icon": "./assets/layers/assembly_point/fire.svg", + "layers": [ + "firepit", + "bbq" + ] +} diff --git a/assets/themes/mapcomplete-changes/mapcomplete-changes.json b/assets/themes/mapcomplete-changes/mapcomplete-changes.json index 71a45eb7f..99de2cacb 100644 --- a/assets/themes/mapcomplete-changes/mapcomplete-changes.json +++ b/assets/themes/mapcomplete-changes/mapcomplete-changes.json @@ -241,6 +241,10 @@ "if": "theme=facadegardens", "then": "./assets/themes/facadegardens/geveltuin.svg" }, + { + "if": "theme=fireplace", + "then": "./assets/layers/assembly_point/fire.svg" + }, { "if": "theme=food", "then": "./assets/layers/food/restaurant.svg"