diff --git a/Customizations/AllKnownLayouts.ts b/Customizations/AllKnownLayouts.ts index 3b79d4e..d26e676 100644 --- a/Customizations/AllKnownLayouts.ts +++ b/Customizations/AllKnownLayouts.ts @@ -25,6 +25,7 @@ import * as campersites from "../assets/themes/campersites/campersites.json" 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 LayerConfig from "./JSON/LayerConfig"; import LayoutConfig from "./JSON/LayoutConfig"; import AllKnownLayers from "./AllKnownLayers"; @@ -59,7 +60,8 @@ export class AllKnownLayouts { new LayoutConfig(campersites), new LayoutConfig(play_forests), new LayoutConfig(speelplekken), - new LayoutConfig(sport_pitches) + new LayoutConfig(sport_pitches), + new LayoutConfig(grb) ]; public static allSets: Map = AllKnownLayouts.AllLayouts(); diff --git a/assets/themes/grb.json b/assets/themes/grb.json new file mode 100644 index 0000000..b56fa01 --- /dev/null +++ b/assets/themes/grb.json @@ -0,0 +1,164 @@ +{ + "id": "grb", + "title": { + "nl": "GRB Fixup" + }, + "shortDescription": { + "nl": "Grb Fixup" + }, + "description": { + "nl": "GRB Fixup" + }, + "language": [ + "nl" + ], + "maintainer": "", + "icon": "./assets/svg/bug.svg", + "version": "0", + "startLat": 51.2132, + "startLon": 3.231, + "startZoom": 14, + "widenFactor": 0.05, + "socialImage": "", + "layers": [ + { + "id": "grb-fixmes", + "name": { + "nl": "Fixmes op gebouwen" + }, + "minzoom": 12, + "source": { + "osmTags": { + "and": [ + "fixme~*", + "building~*" + ] + } + }, + "title": { + "render": { + "nl": "{addr:street} {addr:housenumber}" + }, + "mappings": [ + { + "if": { + "and": [ + "fixme~*" + ] + }, + "then": { + "nl": "{fixme}" + } + } + ] + }, + "description": { + "nl": "Dit gebouw heeft een foutmelding" + }, + "tagRenderings": [ + { + "render": { + "nl": "Het huisnummer is {addr:housenumber}" + }, + "question": { + "nl": "Wat is het huisnummer?" + }, + "freeform": { + "key": "addr:housenumber" + }, + "mappings": [ + { + "if": { + "and": [ + "not:addr:housenumber=yes", + "addr:housenumber=" + ] + }, + "then": { + "nl": "Geen huisnummer" + } + } + ] + }, + { + "render": { + "nl": "De wooneeinheid-aanduiding is {addr:unit} " + }, + "freeform": { + "key": "addr:unit" + }, + "mappings": [ + { + "if": "addr:unit=", + "then": "Geen wooneenheid-nummer" + } + ] + }, + { + "render": { + "nl": "De straat is {addr:street}" + }, + "freeform": { + "key": "addr:street" + }, + "question": { + "nl": "Wat is de straat?" + } + }, + { + "render": { + "nl": "De fixme is {fixme}" + }, + "question": { + "nl": "Wat zegt de fixme?" + }, + "freeform": { + "key": "fixme" + }, + "mappings": [ + { + "if": { + "and": [ + "fixme=" + ] + }, + "then": { + "nl": "Geen fixme" + } + } + ] + }, + { + "render": { + "nl": "Dit gebouw begint maar op de {building:min_level} verdieping" + }, + "question": { + "nl": "Hoeveel verdiepingen ontbreken?" + }, + "freeform": { + "key": "building:min_level", + "type": "pnat" + } + } + ], + "hideUnderlayingFeaturesMinPercentage": 0, + "icon": { + "render": "./assets/svg/bug.svg" + }, + "width": { + "render": "2" + }, + "iconSize": { + "render": "40,40,center" + }, + "dashes": "2 2", + "color": { + "render": "#00f" + }, + "presets": [] + } + ], + "hideFromOverview": true, + "roamingRenderings": [], + "defaultBackgroundId": "AGIVFlandersGRB" +} \ No newline at end of file