diff --git a/src/ol/layer/Graticule.js b/src/ol/layer/Graticule.js index 6c17962753..b7002c247b 100644 --- a/src/ol/layer/Graticule.js +++ b/src/ol/layer/Graticule.js @@ -677,7 +677,7 @@ class Graticule extends VectorLayer { clamp(center[0], this.minLonP_, this.maxLonP_), clamp(center[1], this.minLatP_, this.maxLatP_) ]; - + const centerLonLat = this.toLonLatTransform_(validCenter); let centerLon = centerLonLat[0]; let centerLat = centerLonLat[1];