Mercurial > gemma
diff client/src/map/store.js @ 628:ef9c733cc6aa
client: show more wfs layers
* Add waterway axis, waterway area and distance marks as fully loaded
WFS layers. Distance marks are disabled by default, with code
that honors the isVisible attribute. Code is duplicated, and marked
with FIXMEs.
author | Bernhard Reiter <bernhard@intevation.de> |
---|---|
date | Tue, 11 Sep 2018 17:52:20 +0200 |
parents | 4acf60d1bbb4 |
children | ef658c66cfca |
line wrap: on
line diff
--- a/client/src/map/store.js Tue Sep 11 17:31:07 2018 +0200 +++ b/client/src/map/store.js Tue Sep 11 17:52:20 2018 +0200 @@ -41,7 +41,34 @@ isVisible: true }, { - name: "Buoy, special purpose/general", + name: "Waterway Area", + data: new VectorLayer({ + source: new VectorSource(), + style: new Style({ + stroke: new Stroke({ + color: "rgba(180, 140, 40, 1.0)", + width: 1.5 + }) + }) + }), + isVisible: true + }, + { + name: "Waterway Axis", + data: new VectorLayer({ + source: new VectorSource(), + style: new Style({ + stroke: new Stroke({ + color: "rgba(0, 0, 255, .5)", + lineDash: [5, 5], + width: 2 + }) + }) + }), + isVisible: true + }, + { + name: "Distance marks", data: new VectorLayer({ source: new VectorSource() /*, style: new Style({ @@ -52,7 +79,7 @@ }) */ }), - isVisible: true + isVisible: false } ] },