From e2c43d64dbeab1898dc6bde6231b1933bfcde815 Mon Sep 17 00:00:00 2001 From: Sean Nichols Date: Tue, 8 Nov 2016 16:20:12 -0500 Subject: [PATCH] Fix incorrect call to getTileWidth and getTileHeight in getTileAtPoint --- src/tilesource.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); },