Mercurial > gemma
comparison client/src/store/map.js @ 2997:707e1bc24d93
yarn lint --fix
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Wed, 10 Apr 2019 15:22:35 +0200 |
parents | 888a3454c3ae |
children | 44493664d40e |
comparison
equal
deleted
inserted
replaced
2996:888a3454c3ae | 2997:707e1bc24d93 |
---|---|
103 const red1 = new Style({ | 103 const red1 = new Style({ |
104 stroke: new Stroke({ | 104 stroke: new Stroke({ |
105 color: "rgba(255, 0, 0, 1)", | 105 color: "rgba(255, 0, 0, 1)", |
106 width: 4 | 106 width: 4 |
107 }) | 107 }) |
108 }) | 108 }); |
109 | 109 |
110 const circleBlue = new Style({ | 110 const circleBlue = new Style({ |
111 image: new Circle({ | 111 image: new Circle({ |
112 radius: 5, | 112 radius: 5, |
113 fill: new Fill({ color: "rgba(255, 0, 0, 0.1)" }), | 113 fill: new Fill({ color: "rgba(255, 0, 0, 0.1)" }), |
205 } | 205 } |
206 return s; | 206 return s; |
207 } else { | 207 } else { |
208 return []; | 208 return []; |
209 } | 209 } |
210 } | 210 }; |
211 const gaugeStyle = (feature, resolution, isLegend) => { | 211 const gaugeStyle = (feature, resolution, isLegend) => { |
212 return [ | 212 return [ |
213 new Style({ | 213 new Style({ |
214 image: new Icon({ | 214 image: new Icon({ |
215 src: require("@/assets/marker-gauge.png"), | 215 src: require("@/assets/marker-gauge.png"), |
236 text: feature.get("objname") | 236 text: feature.get("objname") |
237 }) | 237 }) |
238 }) | 238 }) |
239 ]; | 239 ]; |
240 }; | 240 }; |
241 | |
242 | |
243 | 241 |
244 // initial state | 242 // initial state |
245 const init = () => { | 243 const init = () => { |
246 return { | 244 return { |
247 openLayersMap: null, | 245 openLayersMap: null, |