Don't bother making forEachTileCoord abortable
This commit is contained in:
@@ -73,7 +73,6 @@ ol.dom.TileLayerRenderer.prototype.redraw = function() {
|
|||||||
newTiles = true;
|
newTiles = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false;
|
|
||||||
}, this);
|
}, this);
|
||||||
|
|
||||||
if (newTiles) {
|
if (newTiles) {
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ ol.TileBounds.prototype.clone = function() {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {number} z Z.
|
* @param {number} z Z.
|
||||||
* @param {function(this: T, ol.TileCoord): boolean} f Callback.
|
* @param {function(this: T, ol.TileCoord)} f Callback.
|
||||||
* @param {T=} opt_obj The object to be used for the value of 'this' within f.
|
* @param {T=} opt_obj The object to be used for the value of 'this' within f.
|
||||||
* @template T
|
* @template T
|
||||||
*/
|
*/
|
||||||
@@ -62,9 +62,7 @@ ol.TileBounds.prototype.forEachTileCoord = function(z, f, opt_obj) {
|
|||||||
tileCoord.x = x;
|
tileCoord.x = x;
|
||||||
for (y = this.minY; y <= this.maxY; ++y) {
|
for (y = this.minY; y <= this.maxY; ++y) {
|
||||||
tileCoord.y = y;
|
tileCoord.y = y;
|
||||||
if (f.call(opt_obj, tileCoord)) {
|
f.call(opt_obj, tileCoord);
|
||||||
return;
|
|
||||||
}
|
|
||||||
goog.asserts.assert(tileCoord.z == z);
|
goog.asserts.assert(tileCoord.z == z);
|
||||||
goog.asserts.assert(tileCoord.x == x);
|
goog.asserts.assert(tileCoord.x == x);
|
||||||
goog.asserts.assert(tileCoord.y == y);
|
goog.asserts.assert(tileCoord.y == y);
|
||||||
|
|||||||
@@ -339,7 +339,6 @@ ol.webgl.TileLayerRenderer.prototype.redraw = function() {
|
|||||||
goog.events.EventType.CHANGE, this.handleTileChange, false, this);
|
goog.events.EventType.CHANGE, this.handleTileChange, false, this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false;
|
|
||||||
}, this);
|
}, this);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user