From 6ee546010cc6da43a69267dbcb5d71c36be7b0ef Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Sun, 5 Dec 2021 05:16:04 +0100 Subject: [PATCH] Improvements to the CRAB-theme and adresses --- assets/layers/address/address.json | 13 ++-- assets/layers/address/housenumber_blank.svg | 63 ++++++++++++++++++++ assets/layers/crab_address/crab_address.json | 8 +-- 3 files changed, 75 insertions(+), 9 deletions(-) create mode 100644 assets/layers/address/housenumber_blank.svg diff --git a/assets/layers/address/address.json b/assets/layers/address/address.json index 73d19f753..b4d99a755 100644 --- a/assets/layers/address/address.json +++ b/assets/layers/address/address.json @@ -120,8 +120,14 @@ ], "mapRendering": [ { + "label": { + "render": "
{addr:housenumber}
", + "condition": "addr:housenumber~*" + }, + "iconSize": "50,50,center", "icon": { - "render": "./assets/themes/uk_addresses/housenumber_ok.svg", + "render": "./assets/layers/address/housenumber_blank.svg", + "mappings": [ { "if": { @@ -139,11 +145,8 @@ } ] }, - "iconSize": { - "render": "40,40,center" - }, "location": [ - "point" + "point","centroid" ] }, { diff --git a/assets/layers/address/housenumber_blank.svg b/assets/layers/address/housenumber_blank.svg new file mode 100644 index 000000000..3cc6a0b2e --- /dev/null +++ b/assets/layers/address/housenumber_blank.svg @@ -0,0 +1,63 @@ + + + + + + image/svg+xml + + + + + + + + + diff --git a/assets/layers/crab_address/crab_address.json b/assets/layers/crab_address/crab_address.json index c7ec3b1f2..07dd7a6cb 100644 --- a/assets/layers/crab_address/crab_address.json +++ b/assets/layers/crab_address/crab_address.json @@ -15,9 +15,10 @@ "point", "centroid" ], - "iconSize": "15,15,center", + "iconSize": "50,50,center", + "icon": "./assets/layers/crab_address/housenumber_blank.svg", "label": { - "render": "
{HNRLABEL}
" + "render": "
{HNRLABEL}
" } } ], @@ -27,7 +28,6 @@ "render": { "nl": "Volgens het CRAB ligt hier {STRAATNM} {HUISNR} (label: {HNRLABEL})" } - }, - "all_tags" + } ] } \ No newline at end of file