From 7ff59e34a54d60eb745fd137f6f314e0c293013b Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Wed, 22 Jul 2020 12:23:30 +0200 Subject: [PATCH] Tweaks to natuurpunt-layout --- Customizations/Layers/Birdhide.ts | 16 +++++++++- assets/nature/birdshelter.svg | 49 ++++++++++++++++++++++++++----- 2 files changed, 56 insertions(+), 9 deletions(-) diff --git a/Customizations/Layers/Birdhide.ts b/Customizations/Layers/Birdhide.ts index 52ce774..a917e79 100644 --- a/Customizations/Layers/Birdhide.ts +++ b/Customizations/Layers/Birdhide.ts @@ -17,6 +17,7 @@ export class Birdhide extends LayerDefinition { elementsToShow: [new FixedText("hi")], icon: "assets/nature/birdhide.svg", minzoom: 12, + wayHandling: LayerDefinition.WAYHANDLING_CENTER_AND_WAY, newElementTags: [Birdhide.birdhide], style(tags: any): { color: string; icon: any } { return {color: "", icon: undefined}; @@ -64,6 +65,14 @@ export class Birdhide extends LayerDefinition { k: new Tag("amenity", "shelter"), txt: "Vogelijkhut{name}" }, + { + k: new Tag("shelter", "yes"), + txt: "Vogelijkhut{name}" + }, + { + k: new Tag("amenity", "shelter"), + txt: "Vogelijkhut{name}" + }, { k: new Tag("building", "yes"), txt: "Vogelijkhut{name}" @@ -103,7 +112,12 @@ export class Birdhide extends LayerDefinition { { k: new And([new Tag("amenity", "shelter"), new Tag("building", "yes"), new Tag("shelter", "yes")]), txt: "Vogelijkhut" - } + }, + { + k: new Or([new Tag("amenity", "shelter"), new Tag("building", "yes"), new Tag("shelter", "yes")]), + txt: "Vogelijkhut" + }, + ] }), new TagRenderingOptions({ diff --git a/assets/nature/birdshelter.svg b/assets/nature/birdshelter.svg index 9143498..366d443 100644 --- a/assets/nature/birdshelter.svg +++ b/assets/nature/birdshelter.svg @@ -5,11 +5,35 @@ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" + xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" + xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" width="14" height="14" id="svg3800" version="1.1" - viewBox="0 0 14 14"> + viewBox="0 0 14 14" + sodipodi:docname="birdshelter.svg" + inkscape:version="0.92.4 (5da689c313, 2019-01-14)"> + image/svg+xml - + + + id="path820" + d="M 5.3719761,5.278444 V 6.0591348 H 6.6013562 V 5.278444 Z m 2.4070571,0 V 6.0591348 H 9.0103273 V 5.278444 Z m 0,1.025081 v 2.1553847 c 0,0.1034047 0.093965,0.1866891 0.2106399,0.1866891 h 0.015317 0.195322 v 2.0891932 c 0,0.09993 0.092145,0.181597 0.2048974,0.181597 h 1.8076855 c 0.112752,0 0.204898,-0.08167 0.204898,-0.181597 V 9.4347745 l 0.0038,-0.190082 L 9.6383893,6.303525 Z m -3.0408964,0.00341 -0.7851178,2.9411665 0.00384,0.191778 v 1.3000195 c 3.4e-6,0.09993 0.092149,0.181598 0.2049002,0.181598 h 1.8076866 c 0.1147115,0 0.2068114,-0.08167 0.2068114,-0.181595 V 8.6523944 h 0.1934036 0.015319 c 0.1166719,0 0.2106413,-0.084982 0.2106413,-0.1883839 V 6.3069194 Z m 2.1293934,0 V 8.3112551 H 7.5051985 V 6.3069194 Z" + style="fill:#94bb28;fill-opacity:1;stroke-width:0.92300957" + inkscape:connector-curvature="0" /> + style="fill:#734a08;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1.02091908;stroke-opacity:1" + d="M 7.1483058,1.7966979 1.9450836,5.6235415 2.4980189,6.2340722 2.8671947,5.8297911 v 5.7893559 0.02085 c -1.56e-4,0.207212 0.079916,0.399496 0.211183,0.507147 0.1356221,0.110563 0.304872,0.114097 0.4429672,0.0093 C 3.6600101,12.0518 3.7460058,11.854361 3.7462621,11.640049 V 5.3550639 L 7.1714827,3.0174022 10.689411,5.4020278 v 6.2849242 c -1.57e-4,0.207211 0.07992,0.399495 0.211182,0.507147 0.135623,0.110563 0.304873,0.114098 0.442969,0.0093 0.138664,-0.104645 0.22466,-0.302084 0.224917,-0.516396 V 5.8767574 l 0.322822,0.1929437 0.460226,-0.3757112 z" + id="path822" + inkscape:connector-curvature="0" />