Mercurial > gemma
comparison 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 |
comparison
equal
deleted
inserted
replaced
701:8149772c62d6 | 702:aaf5dbfb9512 |
---|---|
58 isVisible: true | 58 isVisible: true |
59 }, | 59 }, |
60 { | 60 { |
61 name: "Waterway Area", | 61 name: "Waterway Area", |
62 data: new VectorLayer({ | 62 data: new VectorLayer({ |
63 source: new VectorSource(), | 63 source: new VectorSource({ |
64 strategy: bboxStrategy | |
65 }), | |
64 style: new Style({ | 66 style: new Style({ |
65 stroke: new Stroke({ | 67 stroke: new Stroke({ |
66 color: "rgba(0, 102, 0, 1)", | 68 color: "rgba(0, 102, 0, 1)", |
67 width: 2 | 69 width: 2 |
68 }) | 70 }) |
85 isVisible: true | 87 isVisible: true |
86 }, | 88 }, |
87 { | 89 { |
88 name: "Distance marks", | 90 name: "Distance marks", |
89 data: new VectorLayer({ | 91 data: new VectorLayer({ |
90 source: new VectorSource() | 92 source: new VectorSource({ |
93 strategy: bboxStrategy | |
94 }) | |
91 }), | 95 }), |
92 isVisible: false | 96 isVisible: false |
93 }, | 97 }, |
94 { | 98 { |
95 name: "Distance marks, Axis", | 99 name: "Distance marks, Axis", |