diff --git a/src/layer/tile/GridLayer.js b/src/layer/tile/GridLayer.js index f995f741..dd835d7e 100644 --- a/src/layer/tile/GridLayer.js +++ b/src/layer/tile/GridLayer.js @@ -218,7 +218,7 @@ L.GridLayer = L.Layer.extend({ this._pxOrigin = map._getNewTopLeftPoint(center, this._tileZoom); this._origScale = map.getZoomScale(zoom) / map.getZoomScale(this._tileZoom); this._origTranslate = map.getSize().multiplyBy((1 - this._origScale) / 2, true) - .subtract(map._getMapPanePos()); + .subtract(map._getMapPanePos()).round(); L.DomUtil.setTransform(this._tileContainer, this._origTranslate, this._origScale);