diff --git a/src/ol/source/VectorTile.js b/src/ol/source/VectorTile.js index bc93a7e534..de57f87b1e 100644 --- a/src/ol/source/VectorTile.js +++ b/src/ol/source/VectorTile.js @@ -162,7 +162,8 @@ VectorTileSource.prototype.getTilePixelRatio = function(pixelRatio) { * @inheritDoc */ VectorTileSource.prototype.getTilePixelSize = function(z, pixelRatio, projection) { - const tileSize = toSize(this.getTileGridForProjection(projection).getTileSize(z)); + const tileGrid = this.getTileGridForProjection(projection); + const tileSize = toSize(tileGrid.getTileSize(z), this.tmpSize); return [Math.round(tileSize[0] * pixelRatio), Math.round(tileSize[1] * pixelRatio)]; }; export default VectorTileSource;