fix tile loading regression after rebase

This commit is contained in:
Vladimir Agafonkin 2014-07-30 12:44:12 +03:00
parent 8b26a7399a
commit 66c13bc94c

View File

@ -278,10 +278,10 @@ L.GridLayer = L.Layer.extend({
tileZoom = Math.round(zoom),
tileZoomChanged = this._tileZoom !== tileZoom;
if (this._abortLoading) {
this._abortLoading();
}
if (tileZoomChanged || e && e.hard) {
if (this._abortLoading) {
this._abortLoading();
}
this._tileZoom = tileZoom;
this._updateLevels();
this._resetGrid();