From 9fb1e5b9e859ae88ca7d309317b5b114134b0aba Mon Sep 17 00:00:00 2001 From: MAUGIN Thomas Date: Fri, 2 Oct 2020 17:52:51 +0200 Subject: [PATCH] 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 --- public_html/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public_html/script.js b/public_html/script.js index b0c09c1..99ed274 100644 --- a/public_html/script.js +++ b/public_html/script.js @@ -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) {