fix rounding bug with unconventional tile sizes, close #2288
This commit is contained in:
parent
a88ab70ee4
commit
87757d5f19
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user