comparison client/src/components/layers/LegendElement.vue @ 5219:de86a96d55c3 new-fwa

linter
author Thomas Junk <thomas.junk@intevation.de>
date Tue, 12 May 2020 10:04:06 +0200
parents 9b1da062cbee
children 453a33b0717d
comparison
equal deleted inserted replaced
5218:7dbb7cc6dbfa 5219:de86a96d55c3
172 let feature; 172 let feature;
173 // show bottleneck legend as polygon 173 // show bottleneck legend as polygon
174 if (this.layer.get("id") === "BOTTLENECKS") { 174 if (this.layer.get("id") === "BOTTLENECKS") {
175 feature = new Feature({ 175 feature = new Feature({
176 geometry: new Polygon([ 176 geometry: new Polygon([
177 [[-1.7, -1.2], [-1.7, 0.5], [1.7, 1.2], [1.7, -0.5]] 177 [
178 [-1.7, -1.2],
179 [-1.7, 0.5],
180 [1.7, 1.2],
181 [1.7, -0.5]
182 ]
178 ]) 183 ])
179 }); 184 });
180 if (typeof mapStyle === "function") { 185 if (typeof mapStyle === "function") {
181 mapStyle = mapStyle(); 186 mapStyle = mapStyle();
182 } 187 }
190 color: mapStyle.getFill().getColor() 195 color: mapStyle.getFill().getColor()
191 }) 196 })
192 }); 197 });
193 } else { 198 } else {
194 feature = new Feature({ 199 feature = new Feature({
195 geometry: new LineString([[-1, -1], [0, 0], [1, 1]]) 200 geometry: new LineString([
201 [-1, -1],
202 [0, 0],
203 [1, 1]
204 ])
196 }); 205 });
197 } 206 }
198 // special case if we need to call the style function with a special 207 // special case if we need to call the style function with a special
199 // parameter or to detect a point layer 208 // parameter or to detect a point layer
200 let legendStyle = this.layer.get("forLegendStyle"); 209 let legendStyle = this.layer.get("forLegendStyle");