Mercurial > gemma
diff client/src/map/store.js @ 702:aaf5dbfb9512
client: improve loading of WFS features
* Change Waterway Area and Distance Marks (on the river banks)
to use the bbox loader. Which also causes them only to be loaded
when they are visible.
* Improve buildVectorLoader() to make use of the projection now.
author | Bernhard Reiter <bernhard@intevation.de> |
---|---|
date | Fri, 21 Sep 2018 00:20:57 +0200 |
parents | 8149772c62d6 |
children | 22159077b564 |
line wrap: on
line diff
--- a/client/src/map/store.js Thu Sep 20 23:40:22 2018 +0200 +++ b/client/src/map/store.js Fri Sep 21 00:20:57 2018 +0200 @@ -60,7 +60,9 @@ { name: "Waterway Area", data: new VectorLayer({ - source: new VectorSource(), + source: new VectorSource({ + strategy: bboxStrategy + }), style: new Style({ stroke: new Stroke({ color: "rgba(0, 102, 0, 1)", @@ -87,7 +89,9 @@ { name: "Distance marks", data: new VectorLayer({ - source: new VectorSource() + source: new VectorSource({ + strategy: bboxStrategy + }) }), isVisible: false },