Mercurial > gemma
comparison client/src/store/map.js @ 2309:77adbdd24d52
client: fix drawing perormance
* Change the vector drawing style of LOS 1 and LOS 2 layers, because
hte old dash segments array posed a problem for chromium (observed with
71.0.3578.80-1~deb9u1).
author | Bernhard Reiter <bernhard@intevation.de> |
---|---|
date | Mon, 18 Feb 2019 15:33:01 +0100 |
parents | 4eeaba4ef573 |
children | 92b21df288e2 ba4dfff74d3f |
comparison
equal
deleted
inserted
replaced
2308:f42a7ba05979 | 2309:77adbdd24d52 |
---|---|
168 style: function() { | 168 style: function() { |
169 return [ | 169 return [ |
170 new Style({ | 170 new Style({ |
171 stroke: new Stroke({ | 171 stroke: new Stroke({ |
172 color: "rgba(0, 0, 255, 0.9)", | 172 color: "rgba(0, 0, 255, 0.9)", |
173 lineDash: [0, 5, 5, 5], | 173 lineDash: [3, 6], |
174 lineCap: "round", | 174 lineCap: "round", |
175 width: 2 | 175 width: 2 |
176 }) | 176 }) |
177 }), | 177 }), |
178 new Style({ | 178 new Style({ |
199 style: function() { | 199 style: function() { |
200 return [ | 200 return [ |
201 new Style({ | 201 new Style({ |
202 stroke: new Stroke({ | 202 stroke: new Stroke({ |
203 color: "rgba(0, 0, 255, 0.8)", | 203 color: "rgba(0, 0, 255, 0.8)", |
204 lineDash: [0, 5], | 204 lineDash: [2, 4], |
205 lineCap: "round", | 205 lineCap: "round", |
206 width: 2 | 206 width: 2 |
207 }) | 207 }) |
208 }), | 208 }), |
209 new Style({ | 209 new Style({ |