Merge pull request #286 from CartoDB/zoom-round-fix

Round zoom for flyto float values
This commit is contained in:
Francisco López 2017-04-18 14:08:10 +02:00 committed by GitHub
commit 03bc7695a3

View File

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