diff --git a/Customizations/AllKnownLayouts.ts b/Customizations/AllKnownLayouts.ts index d26e676f3..488c21c48 100644 --- a/Customizations/AllKnownLayouts.ts +++ b/Customizations/AllKnownLayouts.ts @@ -26,6 +26,7 @@ import * as play_forests from "../assets/themes/play_forests/play_forests.json" import * as speelplekken from "../assets/themes/speelplekken/speelplekken.json" import * as sport_pitches from "../assets/themes/sport_pitches/sport_pitches.json" import * as grb from "../assets/themes/grb.json" +import * as facadegardens from "../assets/themes/facadegardens/facadegardens.json" import LayerConfig from "./JSON/LayerConfig"; import LayoutConfig from "./JSON/LayoutConfig"; import AllKnownLayers from "./AllKnownLayers"; @@ -61,7 +62,8 @@ export class AllKnownLayouts { new LayoutConfig(play_forests), new LayoutConfig(speelplekken), new LayoutConfig(sport_pitches), - new LayoutConfig(grb) + new LayoutConfig(grb), + new LayoutConfig(facadegardens) ]; public static allSets: Map = AllKnownLayouts.AllLayouts(); diff --git a/Models/Constants.ts b/Models/Constants.ts index fef4a0cb2..44371d6ab 100644 --- a/Models/Constants.ts +++ b/Models/Constants.ts @@ -2,7 +2,7 @@ import { Utils } from "../Utils"; export default class Constants { - public static vNumber = "0.6.1"; + public static vNumber = "0.6.3"; // The user journey states thresholds when a new feature gets unlocked public static userJourney = { diff --git a/assets/themes/facadegardens/bloei.svg b/assets/themes/facadegardens/bloei.svg new file mode 100644 index 000000000..eb15b82eb --- /dev/null +++ b/assets/themes/facadegardens/bloei.svg @@ -0,0 +1,94 @@ + + + + +Created by potrace 1.16, written by Peter Selinger 2001-2019 + + + + + + diff --git a/assets/themes/facadegardens/bodembedekker.svg b/assets/themes/facadegardens/bodembedekker.svg new file mode 100644 index 000000000..be19487f1 --- /dev/null +++ b/assets/themes/facadegardens/bodembedekker.svg @@ -0,0 +1,77 @@ + + + + +Created by potrace 1.16, written by Peter Selinger 2001-2019 + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/assets/themes/facadegardens/eetbaar.svg b/assets/themes/facadegardens/eetbaar.svg new file mode 100644 index 000000000..c22f770d5 --- /dev/null +++ b/assets/themes/facadegardens/eetbaar.svg @@ -0,0 +1,34 @@ + + + + +Created by potrace 1.16, written by Peter Selinger 2001-2019 + + + + + + diff --git a/assets/themes/facadegardens/facadegardens.json b/assets/themes/facadegardens/facadegardens.json new file mode 100644 index 000000000..ff165dfe6 --- /dev/null +++ b/assets/themes/facadegardens/facadegardens.json @@ -0,0 +1,327 @@ +{ + "id": "facadegardens", + "title": { + "nl": "Straatgeveltuintjes", + "en": "Facade gardens" + }, + "shortDescription": { + "nl": "Deze kaart toont geveltuintjes met foto's en bruikbare info over oriëntatie, zonlicht en planttypes.", + "en": "This map shows facade gardens with pictures and useful info about orientation, sunshine and plant types." + }, + "description": { + "nl": "Ontharde voortuintjes, groene gevels en bomen ín de stad brengen naast rust ook een mooiere stad, een grotere biodiversiteit, een verkoelend effect en een betere luchtkwaliteit.
Klimaan VZW en 'Mechelen Klimaatneutraal' willen met het project Klim(t)aan je Gevel bestaande en nieuwe geveltuintjes in kaart brengen als voorbeeld voor mensen zelf een tuintje willen aanleggen of voor stadwandelaars die houden van de natuur.
Meer info over het project op klimaan.be.", + "en": "Facade gardens, green facades and trees in the city not only bring peace and quiet, but also a more beautiful city, greater biodiversity, a cooling effect and better air quality.
Klimaan VZW and Mechelen Klimaatneutraal want to map existing and new facade gardens as an example for people who want to build their own garden or for city walkers who love nature.
More info about the project at klimaan.be." + }, + "language": [ + "nl", + "en" + ], + "maintainer": "joost schouppe; stla", + "icon": "./assets/themes/facadegardens/geveltuin.svg", + "version": "0", + "startLat": 51.02768, + "startLon": 4.480705, + "startZoom": 15, + "widenFactor": 0.05, + "socialImage": "", + "layers": [ + { + "id": "facadegardens", + "name": { + "nl": "Geveltuintjes", + "en": "Facade gardens" + }, + "minzoom": 12, + "source": { + "osmTags": { + "and": [ + "leisure=garden", + "garden:type=facade_garden" + ] + } + }, + "title": { + "render": { + "nl": "Geveltuintje", + "en": "Facade garden" + } + }, + "description": { + "nl": "Geveltuintjes", + "en": "Facade gardens" + }, + "iconOverlays": [ + { + "if": "plant~.*vine.*", + "then": "circle:white;./assets/themes/facadegardens/klimplant.svg", + "badge": true + }, + { + "if": "plant~.*groundcover.*", + "then": "circle:white;./assets/themes/facadegardens/bodembedekker.svg", + "badge": true + }, + { + "if": "edible=true", + "then": "circle:white;./assets/themes/facadegardens/eetbaar.svg", + "badge": true + }, + { + "if": "rain_barel=yes", + "then": "circle:white;./assets/themes/facadegardens/gevelton.svg", + "badge": true + }, + { + "if": "plant~.*shrub.*", + "then": "circle:white;./assets/themes/facadegardens/struik.svg", + "badge": true + }, + { + "if": "plant~.*flower.*", + "then": "circle:white;./assets/themes/facadegardens/bloei.svg", + "badge": true + } + ], + "tagRenderings": [ + "images", + { + "render": { + "nl": "Oriëntatie: {direction} (waarbij 0=N en 90=O)", + "en": "Orientation: {direction} (where 0=N and 90=O)" + }, + "question": { + "nl": "Hoe is de tuin georiënteerd?", + "en": "What is the orientation of the garden?" + }, + "freeform": { + "type": "direction", + "key": "direction" + } + }, + { + "mappings": [ + { + "if": { + "and": [ + "direct_sunlight=yes" + ] + }, + "then": { + "nl": "Het is een volle zon tuintje", + "en": "The garden is in full sun" + } + }, + { + "if": { + "and": [ + "direct_sunlight=partial" + ] + }, + "then": { + "nl": "Het is een halfschaduw tuintje", + "en": "The garden is in partial shade" + } + }, + { + "if": { + "and": [ + "direct_sunlight=no" + ] + }, + "then": { + "nl": "Het is een schaduw tuintje", + "en": "The sun is in the shade" + } + } + ], + "question": { + "nl": "Ligt de tuin in zon/half schaduw of schaduw?", + "en": "Is the garden shaded or sunny?" + } + }, + { + "question": { + "nl": "Is er een regenton voorzien bij het tuintje?", + "en": "Is there a water barrel installed for the garden?" + }, + "mappings": [ + { + "if": { + "and": [ + "rain_barrel=yes" + ] + }, + "then": { + "nl": "Er is een regenton", + "en": "There is a rain barrel" + } + }, + { + "if": { + "and": [ + "rain_barrel=no" + ] + }, + "then": { + "nl": "Er is geen regenton", + "en": "There is no rain barrel" + } + } + ] + }, + { + "render": { + "nl": "Aanlegdatum van de tuin: {start_date}", + "en": "Construction date of the garden: {start_date}" + }, + "question": { + "nl": "Wanneer werd de tuin aangelegd? (vul gewoon een jaartal in)", + "en": "When was the garden constructed? (a year is sufficient)" + }, + "freeform": { + "key": "start_date", + "type": "text" + } + }, + { + "mappings": [ + { + "if": { + "and": [ + "edible=yes" + ] + }, + "then": { + "nl": "Er staan eetbare planten", + "en": "There are edible plants" + } + }, + { + "if": { + "and": [ + "edible=no" + ] + }, + "then": { + "nl": "Er staan geen eetbare planten", + "en": "There are no edible plants" + } + } + ], + "question": { + "nl": "Staan er eetbare planten?", + "en": "Are there any edible plants?" + } + }, + { + "question": { + "nl": "Wat voor planten staan hier?", + "en": "What kinds of plants grow here?" + }, + "mappings": [ + { + "if": "plant=vine", + "then": { + "nl": "Er staat een klimplant", + "en": "There are vines" + } + }, + { + "if": "plant=flower", + "then": { + "nl": "Er staan bloeiende planten", + "en": "There are flowering plants" + } + }, + { + "if": "plant=shrub", + "then": { + "nl": "Er staan struiken", + "en": "There are shrubs" + } + }, + { + "if": "plant=groundcover", + "then": { + "nl": "Er staan bodembedekkers", + "en": "There are groundcovering plants" + } + } + ], + "multiAnswer": true + }, + { + "render": { + "nl": "Meer details: {description}", + "en": "More details: {description}" + }, + "question": { + "nl": "Aanvullende omschrijving van de tuin (indien nodig, en voor zover nog niet omschreven hierboven)", + "en": "Extra describing info about the garden (if needed and not yet described above)" + }, + "freeform": { + "key": "description", + "type": "text" + } + } + ], + "hideUnderlayingFeaturesMinPercentage": 0, + "icon": { + "render": "circle:white;./assets/themes/facadegardens/geveltuin.svg", + "mappings": [ + { + "if": { + "and": [ + "direct_sunlight=yes" + ] + }, + "then": "circle:white;./assets/themes/facadegardens/zon.svg" + }, + { + "if": { + "and": [ + "direct_sunlight=partial" + ] + }, + "then": "circle:white;./assets/themes/facadegardens/halfzon.svg" + }, + { + "if": { + "and": [ + "direct_sunlight=no" + ] + }, + "then": "circle:white;./assets/themes/facadegardens/schaduw.svg" + } + ] + }, + "width": { + "render": "8" + }, + "iconSize": { + "render": "50,50,center" + }, + "color": { + "render": "#00f" + }, + "presets": [ + { + "tags": [ + "leisure=garden", + "garden:type=facade_garden" + ], + "title": { + "nl": "geveltuintje", + "en": "facade garden" + }, + "description": { + "nl": "Voeg geveltuintje toe", + "en": "Add a facade garden" + } + } + ], + "wayHandling": 1 + } + ], + "roamingRenderings": [] +} diff --git a/assets/themes/facadegardens/gevelton.svg b/assets/themes/facadegardens/gevelton.svg new file mode 100644 index 000000000..9503e21eb --- /dev/null +++ b/assets/themes/facadegardens/gevelton.svg @@ -0,0 +1,40 @@ + + + + +Created by potrace 1.16, written by Peter Selinger 2001-2019 + + + + + + + + diff --git a/assets/themes/facadegardens/geveltuin.svg b/assets/themes/facadegardens/geveltuin.svg new file mode 100644 index 000000000..a3459e501 --- /dev/null +++ b/assets/themes/facadegardens/geveltuin.svg @@ -0,0 +1,50 @@ + + + + +Created by potrace 1.16, written by Peter Selinger 2001-2019 + + + + + + diff --git a/assets/themes/facadegardens/halfzon.svg b/assets/themes/facadegardens/halfzon.svg new file mode 100644 index 000000000..64509c264 --- /dev/null +++ b/assets/themes/facadegardens/halfzon.svg @@ -0,0 +1,32 @@ + + + + +Created by potrace 1.16, written by Peter Selinger 2001-2019 + + + + + + + + + + + diff --git a/assets/themes/facadegardens/klimplant.svg b/assets/themes/facadegardens/klimplant.svg new file mode 100644 index 000000000..b2bd3276d --- /dev/null +++ b/assets/themes/facadegardens/klimplant.svg @@ -0,0 +1,76 @@ + + + + +Created by potrace 1.16, written by Peter Selinger 2001-2019 + + + + + + + + + + + + + + + diff --git a/assets/themes/facadegardens/schaduw.svg b/assets/themes/facadegardens/schaduw.svg new file mode 100644 index 000000000..ceeae1da4 --- /dev/null +++ b/assets/themes/facadegardens/schaduw.svg @@ -0,0 +1,29 @@ + + + + +Created by potrace 1.16, written by Peter Selinger 2001-2019 + + + + + + + + + diff --git a/assets/themes/facadegardens/struik.svg b/assets/themes/facadegardens/struik.svg new file mode 100644 index 000000000..a485bb2da --- /dev/null +++ b/assets/themes/facadegardens/struik.svg @@ -0,0 +1,42 @@ + + + + +Created by potrace 1.16, written by Peter Selinger 2001-2019 + + + + + + diff --git a/assets/themes/facadegardens/zon.svg b/assets/themes/facadegardens/zon.svg new file mode 100644 index 000000000..0417594b0 --- /dev/null +++ b/assets/themes/facadegardens/zon.svg @@ -0,0 +1,40 @@ + + + + +Created by potrace 1.16, written by Peter Selinger 2001-2019 + + + + + + + + + + + + + +