From d7adf0b4f3bb0add071e1e737eea66c1ef9a9af8 Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Wed, 25 Jul 2018 16:10:56 +0200 Subject: [PATCH] Call setCoordinates on the point instance --- src/ol/Graticule.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ol/Graticule.js b/src/ol/Graticule.js index e0d987a2ef..916b2e7222 100644 --- a/src/ol/Graticule.js +++ b/src/ol/Graticule.js @@ -364,7 +364,7 @@ class Graticule { const coordinate = [flatCoordinates[0], lat]; let point; if (index in this.meridiansLabels_) { - point = this.meridiansLabels_[index]; + point = this.meridiansLabels_[index].geom; point.setCoordinates(coordinate); } else { point = new Point(coordinate); @@ -414,7 +414,7 @@ class Graticule { const coordinate = [lon, flatCoordinates[1]]; let point; if (index in this.parallelsLabels_) { - point = this.parallelsLabels_[index]; + point = this.parallelsLabels_[index].geom; point.setCoordinates(coordinate); } else { point = new Point(coordinate);