Handle aborted tiles in ol.TileQueue

This commit is contained in:
Frederic Junod
2016-03-15 17:08:39 +01:00
parent b0984070db
commit c30ecace75
3 changed files with 5 additions and 2 deletions

View File

@@ -95,7 +95,7 @@ ol.TileQueue.prototype.handleTileChange = function(event) {
var tile = /** @type {ol.Tile} */ (event.target);
var state = tile.getState();
if (state === ol.TileState.LOADED || state === ol.TileState.ERROR ||
state === ol.TileState.EMPTY) {
state === ol.TileState.EMPTY || state === ol.TileState.ABORT) {
ol.events.unlisten(tile, ol.events.EventType.CHANGE,
this.handleTileChange, this);
var tileKey = tile.getKey();