diff client/src/components/map/layers.js @ 4336:45307cf4931a

Review of fairway dimensions In order to review fairway dimensions, the ids from the summary are used to retrieve the according features from the geoserver. Then instances of the type Feature are generated with the information given from the geoserver. These are then added to the VectorSource layer and should be displayed. Currently the display doesn't work.
author Thomas Junk <thomas.junk@intevation.de>
date Thu, 05 Sep 2019 15:52:43 +0200
parents 18a34d9b289c
children e9d2573329da
line wrap: on
line diff
--- a/client/src/components/map/layers.js	Thu Sep 05 15:02:06 2019 +0200
+++ b/client/src/components/map/layers.js	Thu Sep 05 15:52:43 2019 +0200
@@ -180,6 +180,13 @@
   // Shared feature source for layers:
   // BOTTLENECKS, BOTTLENECKSTATUS and BOTTLENECKFAIRWAYAVAILABILITY
   // Reduces bottlenecks_geoserver requests and number of stored feature objects.
+  const FDREVIEWLAYER = new VectorLayer({
+    id: "FDREVIEWLAYER",
+    label: "Review",
+    visible: true,
+    source: new VectorSource(),
+    style: styles.sections
+  });
   const bottlenecksSource = new VectorSource({ strategy: bboxStrategy });
   bottlenecksSource.setLoader(
     buildVectorLoader(
@@ -637,7 +644,8 @@
           });
         })(),
         DRAWLAYER,
-        CUTLAYER
+        CUTLAYER,
+        FDREVIEWLAYER
       ];
 
   layerConfigs[mapId] = config;