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:
MAUGIN Thomas 2020-10-02 17:52:51 +02:00 committed by GitHub
parent c3cd1ec0de
commit 9fb1e5b9e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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) {