fix(html): add empty coordinates to constructor (#82)
- Change LineString constructor creation, see deprecated null constructor https://github.com/openlayers/openlayers/blob/main/changelog/upgrade-notes.md#v510
This commit is contained in:
parent
c3cd1ec0de
commit
9fb1e5b9e8
|
|
@ -944,7 +944,7 @@ function initialize_map() {
|
|||
});
|
||||
|
||||
for (var i = 0; i < data.rings.length; ++i) {
|
||||
var geom = new ol.geom.LineString();
|
||||
var geom = new ol.geom.LineString([]);
|
||||
var points = data.rings[i].points;
|
||||
if (points.length > 0) {
|
||||
for (var j = 0; j < points.length; ++j) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue