From db7853f03232f3870fdf2b6dca30d738c6ecfbeb Mon Sep 17 00:00:00 2001 From: wjtje <33957974+wjtje@users.noreply.github.com> Date: Tue, 12 Jul 2022 23:48:22 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A7=20Basic=20building=20and=20adress?= =?UTF-8?q?=20rendering=20working?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/themes/bag_import/bag.json | 81 +++++++++++++++++++ assets/themes/bag_import/license_info.json | 10 +++ assets/themes/bag_import/logo.svg | 5 ++ .../mapcomplete-changes.json | 4 + langs/themes/nl.json | 5 ++ 5 files changed, 105 insertions(+) create mode 100644 assets/themes/bag_import/bag.json create mode 100644 assets/themes/bag_import/license_info.json create mode 100644 assets/themes/bag_import/logo.svg diff --git a/assets/themes/bag_import/bag.json b/assets/themes/bag_import/bag.json new file mode 100644 index 000000000..2a25093d4 --- /dev/null +++ b/assets/themes/bag_import/bag.json @@ -0,0 +1,81 @@ +{ + "id": "bag", + "title": { + "nl": "BAG import helper" + }, + "shortDescription": { + "nl": "BAG import helper tool" + }, + "description": { + "nl": "Dit thema helpt het importeren van BAG data" + }, + "maintainer": "Wouter van der Wal", + "icon": "./assets/themes/bag_import/logo.svg", + "version": "0", + "startLat": 53.1726, + "startLon": 7.04545, + "startZoom": 9, + "overrideAll": { + "minzoom": 19 + }, + "layers": [ + { + "id": "bag:pand", + "description": "Buildings which come from the BAG", + "source": { + "geoJson": "https://service.pdok.nl/lv/bag/wfs/v2_0?request=GetFeature&service=WFS&version=2.0.0&outputFormat=application%2Fjson%3B%20subtype%3Dgeojson&typeName=bag%3Apand&bbox={x_min}%2C{y_min}%2C{x_max}%2C{y_max}%2CCRS84&srsName=EPSG%3A4326", + "geoJsonZoomLevel": 18, + "osmTags": { + "and": [ + "building~*" + ] + }, + "maxCacheAge": 0 + }, + "mapRendering": [ + { + "width": { + "render": 5 + }, + "color": { + "render": "#00a" + } + } + ] + }, + { + "id": "bag:verblijfsobject", + "source": { + "geoJson": "https://service.pdok.nl/lv/bag/wfs/v2_0?request=GetFeature&service=WFS&version=2.0.0&outputFormat=application%2Fjson%3B%20subtype%3Dgeojson&typeName=bag%3Averblijfsobject&bbox={x_min}%2C{y_min}%2C{x_max}%2C{y_max}%2CCRS84&srsName=EPSG%3A4326", + "geoJsonZoomLevel": 18, + "osmTags": { + "and": [ + "building~*" + ] + }, + "maxCacheAge": 0 + }, + "calculatedTags": [ + "addr:housenumber=feat.properties.huisnummer" + ], + "mapRendering": [ + { + "label": { + "render": "