From 7b37c248b2d4102c19b826c49cb6ea7aebd89963 Mon Sep 17 00:00:00 2001 From: Robin van der Linde Date: Mon, 10 Oct 2022 10:11:03 +0200 Subject: [PATCH] Add some descriptions, move minzoom --- assets/themes/bag_import/bag.json | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/assets/themes/bag_import/bag.json b/assets/themes/bag_import/bag.json index c551549d77..c4934eb7d3 100644 --- a/assets/themes/bag_import/bag.json +++ b/assets/themes/bag_import/bag.json @@ -17,18 +17,17 @@ "startLat": 53.1726, "startLon": 7.04545, "startZoom": 9, - "overrideAll": { - "minzoom": 19 - }, "layers": [ { "id": "osm:buildings", "name": "OSM Buildings", "title": "OSM Building", + "description": "Layer showing buildings that are in OpenStreetMap", "source": { "osmTags": "building~*", "maxCacheAge": 0 }, + "minzoom": 19, "calculatedTags": [ "_surface:strict:=feat.get('_surface')" ], @@ -108,6 +107,7 @@ "id": "osm:adresses", "name": "OSM Adresses", "title": "OSM Adress", + "description": "Layer showing adresses that are in OpenStreetMap", "source": { "osmTags": { "and": [ @@ -120,6 +120,7 @@ }, "maxCacheAge": 0 }, + "minzoom": 19, "mapRendering": [ { "label": { @@ -151,6 +152,7 @@ "osmTags": "identificatie~*", "maxCacheAge": 0 }, + "minzoom": 19, "calculatedTags": [ "_overlaps_with_buildings=feat.overlapWith('osm:buildings').filter(f => f.feat.properties.id.indexOf('-') < 0)", "_overlaps_with=feat.get('_overlaps_with_buildings').find(f => f.overlap > 1 /* square meter */ )", @@ -213,7 +215,7 @@ { "id": "Build year", "render": { - "en": "This building was build in {_bag_obj:start_date}" + "en": "This building was built in {_bag_obj:start_date}" }, "mappings": [ { @@ -257,13 +259,14 @@ "id": "bag:verblijfsobject", "name": "BAG Addresses", "title": "BAG Address", - "description": "Adress information from the BAG register", + "description": "Address information from the BAG register", "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": 19, "osmTags": "identificatie~*", "maxCacheAge": 0 }, + "minzoom": 19, "calculatedTags": [ "_closed_osm_addr:=feat.closest('osm:adresses').properties", "_bag_obj:addr:housenumber=`${feat.properties.huisnummer}${feat.properties.huisletter}${(feat.properties.toevoeging != '') ? '-' : ''}${feat.properties.toevoeging}`", @@ -304,11 +307,11 @@ "condition": "_imported_osm_object_found=false" }, { - "id": "Adress", + "id": "Address", "render": "{openbare_ruimte} {_bag_obj:addr:housenumber}, {woonplaats} {postcode}" } ] } ], "hideFromOverview": true -} \ No newline at end of file +}