Fix incorrect call to getTileWidth and getTileHeight in getTileAtPoint

This commit is contained in:
Sean Nichols 2016-11-08 16:20:12 -05:00
parent c59a2be322
commit e2c43d64db

View File

@ -353,8 +353,8 @@ $.TileSource.prototype = {
var pixelX = point.x * widthScaled; var pixelX = point.x * widthScaled;
var pixelY = point.y * widthScaled; var pixelY = point.y * widthScaled;
var x = Math.floor(pixelX / this.getTileWidth()); var x = Math.floor(pixelX / this.getTileWidth(level));
var y = Math.floor(pixelY / this.getTileHeight()); var y = Math.floor(pixelY / this.getTileHeight(level));
return new $.Point(x, y); return new $.Point(x, y);
}, },