diff --git a/src/tilesource.js b/src/tilesource.js index 74d7c315..b095a2db 100644 --- a/src/tilesource.js +++ b/src/tilesource.js @@ -353,8 +353,8 @@ $.TileSource.prototype = { var pixelX = point.x * widthScaled; var pixelY = point.y * widthScaled; - var x = Math.floor(pixelX / this.getTileWidth()); - var y = Math.floor(pixelY / this.getTileHeight()); + var x = Math.floor(pixelX / this.getTileWidth(level)); + var y = Math.floor(pixelY / this.getTileHeight(level)); return new $.Point(x, y); },