Mercurial > gemma
comparison 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 |
comparison
equal
deleted
inserted
replaced
4335:2f212f520a04 | 4336:45307cf4931a |
---|---|
178 export const layerFactory = function(mapId) { | 178 export const layerFactory = function(mapId) { |
179 const styles = styleFactory(mapId); | 179 const styles = styleFactory(mapId); |
180 // Shared feature source for layers: | 180 // Shared feature source for layers: |
181 // BOTTLENECKS, BOTTLENECKSTATUS and BOTTLENECKFAIRWAYAVAILABILITY | 181 // BOTTLENECKS, BOTTLENECKSTATUS and BOTTLENECKFAIRWAYAVAILABILITY |
182 // Reduces bottlenecks_geoserver requests and number of stored feature objects. | 182 // Reduces bottlenecks_geoserver requests and number of stored feature objects. |
183 const FDREVIEWLAYER = new VectorLayer({ | |
184 id: "FDREVIEWLAYER", | |
185 label: "Review", | |
186 visible: true, | |
187 source: new VectorSource(), | |
188 style: styles.sections | |
189 }); | |
183 const bottlenecksSource = new VectorSource({ strategy: bboxStrategy }); | 190 const bottlenecksSource = new VectorSource({ strategy: bboxStrategy }); |
184 bottlenecksSource.setLoader( | 191 bottlenecksSource.setLoader( |
185 buildVectorLoader( | 192 buildVectorLoader( |
186 { | 193 { |
187 featureTypes: ["bottlenecks_geoserver"], | 194 featureTypes: ["bottlenecks_geoserver"], |
635 minResolution: 0, | 642 minResolution: 0, |
636 source | 643 source |
637 }); | 644 }); |
638 })(), | 645 })(), |
639 DRAWLAYER, | 646 DRAWLAYER, |
640 CUTLAYER | 647 CUTLAYER, |
648 FDREVIEWLAYER | |
641 ]; | 649 ]; |
642 | 650 |
643 layerConfigs[mapId] = config; | 651 layerConfigs[mapId] = config; |
644 | 652 |
645 return { | 653 return { |