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