Mercurial > gemma
changeset 1943:52a6e63d5dcc
Added stretches layer, removed WW-Area named.
"Waterway Area, named" is no longer needed as all ww-area is coming
from our db, where different sources are merged.
Instead we can now display stretches.
Todo: stretches for different countries should be distinguishable
(different colors)
author | Sascha Wilde <wilde@intevation.de> |
---|---|
date | Mon, 21 Jan 2019 18:32:04 +0100 |
parents | d1b7b1c70410 |
children | ef1184654839 |
files | client/src/components/Maplayer.vue client/src/store/map.js |
diffstat | 2 files changed, 22 insertions(+), 19 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/components/Maplayer.vue Mon Jan 21 16:53:12 2019 +0100 +++ b/client/src/components/Maplayer.vue Mon Jan 21 18:32:04 2019 +0100 @@ -269,16 +269,16 @@ ) ); - layer = this.getLayerByName("Waterway Area, named"); + layer = this.getLayerByName("Stretches"); layer.data.getSource().setLoader( this.buildVectorLoader( { featureNS: "gemma", featurePrefix: "gemma", - featureTypes: ["hydro_seaare"], + featureTypes: ["stretches_geoserver"], geometryName: "geom" }, - "/external/d4d", + "/internal/wfs", layer.data.getSource() ) );
--- a/client/src/store/map.js Mon Jan 21 16:53:12 2019 +0100 +++ b/client/src/store/map.js Mon Jan 21 18:32:04 2019 +0100 @@ -99,22 +99,6 @@ showInLegend: true }, { - name: "Waterway Area, named", - data: new VectorLayer({ - source: new VectorSource({ - strategy: bboxStrategy - }), - style: new Style({ - stroke: new Stroke({ - color: "rgba(0, 132, 0, 1)", - width: 2 - }) - }) - }), - isVisible: false, - showInLegend: true - }, - { name: "Waterway Area", data: new VectorLayer({ source: new VectorSource({ @@ -131,6 +115,25 @@ showInLegend: true }, { + name: "Stretches", + data: new VectorLayer({ + source: new VectorSource({ + strategy: bboxStrategy + }), + style: new Style({ + stroke: new Stroke({ + color: "rgba(250, 200, 0, .8)", + width: 2 + }), + fill: new Fill({ + color: "rgba(250, 200, 10, .3)" + }) + }) + }), + isVisible: false, + showInLegend: true + }, + { name: "Waterway Axis", data: new VectorLayer({ source: new VectorSource({