Fix building without zoom animations enabled
This commit is contained in:
parent
16b09c758a
commit
1681365040
@ -524,10 +524,12 @@ L.TileLayer = L.Class.extend({
|
||||
if (!this._tilesToLoad) {
|
||||
this.fire('load');
|
||||
|
||||
if (this._animated) {
|
||||
// clear scaled tiles after all new tiles are loaded (for performance)
|
||||
clearTimeout(this._clearBgBufferTimer);
|
||||
this._clearBgBufferTimer = setTimeout(L.bind(this._clearBgBuffer, this), 500);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
_tileOnLoad: function () {
|
||||
|
Loading…
Reference in New Issue
Block a user