fix rounding bug with unconventional tile sizes, close #2288

This commit is contained in:
Vladimir Agafonkin 2013-12-24 00:16:38 +02:00
parent a88ab70ee4
commit 87757d5f19

View File

@ -473,7 +473,7 @@ L.TileLayer = L.Class.extend({
_getWrapTileNum: function () {
var crs = this._map.options.crs,
size = crs.getSize(this._map.getZoom());
return size.divideBy(this._getTileSize());
return size.divideBy(this._getTileSize())._floor();
},
_adjustTilePoint: function (tilePoint) {