Register a CHANGE listener even if tile is loading
This fixes an issue easily reproducible in the side-by-side example where the DOM renderer is not notified when tiles loaded by the WebGL renderer have been received.
This commit is contained in:
@@ -139,11 +139,9 @@ ol.renderer.dom.TileLayer.prototype.render = function() {
|
|||||||
tilesToDrawByZ[z][key] = tile;
|
tilesToDrawByZ[z][key] = tile;
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
if (state != ol.TileState.LOADING) {
|
goog.events.listen(tile, goog.events.EventType.CHANGE,
|
||||||
goog.events.listen(tile, goog.events.EventType.CHANGE,
|
this.handleTileChange_, false, this);
|
||||||
this.handleTileChange_, false, this);
|
tile.load();
|
||||||
tile.load();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user