Round zoom for flyto float values

This commit is contained in:
Francisco López 2017-04-18 11:04:25 +02:00
parent 813b3b60dc
commit 4cfbe82ae1

View File

@ -110,6 +110,8 @@ L.Mixin.TileLoader = {
center = bounds.getCenter(), center = bounds.getCenter(),
zoom = this._map.getZoom(); zoom = this._map.getZoom();
zoom = Math.round(zoom);
var j, i, point; var j, i, point;
for (j = bounds.min.y; j <= bounds.max.y; j++) { for (j = bounds.min.y; j <= bounds.max.y; j++) {