Mercurial > gemma
changeset 1944:ef1184654839
Order layers a bit less arbitrary.
author | Sascha Wilde <wilde@intevation.de> |
---|---|
date | Mon, 21 Jan 2019 18:36:03 +0100 |
parents | 52a6e63d5dcc |
children | f64bc12c1719 |
files | client/src/store/map.js |
diffstat | 1 files changed, 40 insertions(+), 40 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/store/map.js Mon Jan 21 18:32:04 2019 +0100 +++ b/client/src/store/map.js Mon Jan 21 18:36:03 2019 +0100 @@ -70,35 +70,6 @@ showInLegend: true }, { - name: "Fairway Dimensions", - data: new VectorLayer({ - source: new VectorSource(), - style: function(feature) { - return [ - new Style({ - stroke: new Stroke({ - color: "rgba(0, 0, 255, 1.0)", - width: 2 - }) - }), - new Style({ - text: new Text({ - font: 'bold 12px "Open Sans", "sans-serif"', - placement: "line", - fill: new Fill({ - color: "black" - }), - text: "LOS: " + feature.get("level_of_service").toString() - //, zIndex: 10 - }) - }) - ]; - } - }), - isVisible: true, - showInLegend: true - }, - { name: "Waterway Area", data: new VectorLayer({ source: new VectorSource({ @@ -134,6 +105,35 @@ showInLegend: true }, { + name: "Fairway Dimensions", + data: new VectorLayer({ + source: new VectorSource(), + style: function(feature) { + return [ + new Style({ + stroke: new Stroke({ + color: "rgba(0, 0, 255, 1.0)", + width: 2 + }) + }), + new Style({ + text: new Text({ + font: 'bold 12px "Open Sans", "sans-serif"', + placement: "line", + fill: new Fill({ + color: "black" + }), + text: "LOS: " + feature.get("level_of_service").toString() + //, zIndex: 10 + }) + }) + ]; + } + }), + isVisible: true, + showInLegend: true + }, + { name: "Waterway Axis", data: new VectorLayer({ source: new VectorSource({ @@ -151,17 +151,6 @@ showInLegend: true }, { - name: "Distance marks", - forLegendStyle: { point: true, resolution: 8 }, - data: new VectorLayer({ - source: new VectorSource({ - strategy: bboxStrategy - }) - }), - isVisible: false, - showInLegend: true - }, - { name: "Bottlenecks", data: new VectorLayer({ source: new VectorSource({ @@ -209,6 +198,17 @@ showInLegend: true }, { + name: "Distance marks", + forLegendStyle: { point: true, resolution: 8 }, + data: new VectorLayer({ + source: new VectorSource({ + strategy: bboxStrategy + }) + }), + isVisible: false, + showInLegend: true + }, + { name: "Distance marks, Axis", forLegendStyle: { point: true, resolution: 8 }, data: new VectorLayer({