diff client/src/map/store.js @ 804:21609ba97357

client: improve legendelements for layerselection * Add a special hint to the layer data, so that we can detect points and specify which resolution we want for the legend. * Improve LineString to have a bend. * Actually take styles of the layer into account. * Do not act on TILE layers.
author Bernhard Reiter <bernhard@intevation.de>
date Thu, 27 Sep 2018 15:00:52 +0200
parents 073394629ec6
children cd79f62794dd
line wrap: on
line diff
--- a/client/src/map/store.js	Thu Sep 27 14:00:50 2018 +0200
+++ b/client/src/map/store.js	Thu Sep 27 15:00:52 2018 +0200
@@ -106,6 +106,7 @@
       },
       {
         name: "Distance marks",
+        forLegendStyle: { point: true, resolution: 8 },
         data: new VectorLayer({
           source: new VectorSource({
             strategy: bboxStrategy
@@ -115,6 +116,7 @@
       },
       {
         name: "Distance marks, Axis",
+        forLegendStyle: { point: true, resolution: 8 },
         data: new VectorLayer({
           source: new VectorSource({
             strategy: bboxStrategy