Mercurial > gemma
comparison client/src/map/store.js @ 716:22159077b564
client: add step to intersect with fairways
* Add comfort function getLayerByName() so that we do not spread
the number of the layer around in the code too much
* Add code the get the right vectorSource and the call that could be
used in the comment to prepare an intersection with the profile linestring.
author | Bernhard Reiter <bernhard@intevation.de> |
---|---|
date | Fri, 21 Sep 2018 14:48:32 +0200 |
parents | aaf5dbfb9512 |
children | e57955c1996f |
comparison
equal
deleted
inserted
replaced
715:23b68cd4bed3 | 716:22159077b564 |
---|---|
28 }) | 28 }) |
29 }), | 29 }), |
30 isVisible: true | 30 isVisible: true |
31 }, | 31 }, |
32 { | 32 { |
33 name: "Fairways Dimensions", | 33 name: "Fairway Dimensions", |
34 data: new VectorLayer({ | 34 data: new VectorLayer({ |
35 source: new VectorSource(), | 35 source: new VectorSource(), |
36 style: function(feature) { | 36 style: function(feature) { |
37 return [ | 37 return [ |
38 new Style({ | 38 new Style({ |