changeset 4983:9b1da062cbee

fairwaymarks legend icon added
author Thomas Junk <thomas.junk@intevation.de>
date Thu, 05 Mar 2020 10:15:41 +0100
parents b5028b98e7c4
children 9d57c5765474 4bd4cd7d8429
files client/src/assets/fm_legend.svg client/src/components/layers/LegendElement.vue
diffstat 2 files changed, 46 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/client/src/assets/fm_legend.svg	Thu Mar 05 10:15:41 2020 +0100
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<svg
+   xmlns:dc="http://purl.org/dc/elements/1.1/"
+   xmlns:cc="http://creativecommons.org/ns#"
+   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"
+   id="svg2"
+   height="20"
+   width="20"
+   version="1.0">
+  <metadata
+     id="metadata7">
+    <rdf:RDF>
+      <cc:Work
+         rdf:about="">
+        <dc:format>image/svg+xml</dc:format>
+        <dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+        <dc:title></dc:title>
+      </cc:Work>
+    </rdf:RDF>
+  </metadata>
+  <defs
+     id="defs4" />
+  <path
+     style="fill:#000407;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.16059898"
+     id="path4582"
+     d="M 12.204078,6.7050935 11.180261,9.6862128 C 10.869802,9.6104528 10.55185,9.5608801 10.231721,9.5406654 10.102359,9.532456 9.970398,9.5295187 9.8402602,9.5306484 8.9293256,9.5384812 8.0084945,9.7753488 7.1703073,10.268395 4.8156856,11.653464 3.9033276,14.574413 4.9520295,17.023594 H 3.6572037 v 0.908388 h 3.4880084 c 0.2067413,0.888581 1.0010572,1.550779 1.9522782,1.550779 0.9515447,0 1.7458677,-0.661753 1.9522857,-1.550779 l 5.184334,0.0053 V 17.0289 L 14.853959,17.0236 C 15.534737,15.45425 15.428271,13.68935 14.537784,12.175522 13.897895,11.087715 12.93409,10.306851 11.837713,9.8869816 L 12.851491,6.9209104 Z M 9.0974903,16.270769 c 0.6648861,0 1.2044927,0.539614 1.2044927,1.204492 0,0.664879 -0.5396066,1.204492 -1.2044927,1.204492 -0.6648786,0 -1.2044923,-0.539613 -1.2044923,-1.204492 0,-0.664878 0.5396137,-1.204492 1.2044923,-1.204492 z M 9.9988524,5.3450219 14.682323,0.66757693 15.66599,7.2380794 Z" />
+</svg>
--- a/client/src/components/layers/LegendElement.vue	Thu Mar 05 09:37:41 2020 +0100
+++ b/client/src/components/layers/LegendElement.vue	Thu Mar 05 10:15:41 2020 +0100
@@ -1,11 +1,21 @@
 <template>
   <div :id="id" class="legendelement">
-    <img
-      v-if="!isVectorLayer"
-      style="margin: 0 auto;display: flex;"
-      :src="imgSrc"
-      :key="id"
-    />
+    <div v-if="layer.get('id') === 'FAIRWAYMARKS'">
+      <img
+        v-if="!isVectorLayer"
+        style="margin: 0 auto;display: flex;"
+        src="@/assets/fm_legend.svg"
+        :key="id"
+      />
+    </div>
+    <div v-else="">
+      <img
+        v-if="!isVectorLayer"
+        style="margin: 0 auto;display: flex;"
+        :src="imgSrc"
+        :key="id"
+      />
+    </div>
   </div>
 </template>