Use ERROR instead of EMPTY state when source tiles have ERROR state

This commit is contained in:
Andreas Hocevar
2017-09-11 22:15:42 +02:00
parent 2907fc3297
commit b65c6f7e8e
2 changed files with 4 additions and 4 deletions

View File

@@ -273,7 +273,7 @@ ol.VectorImageTile.prototype.finishLoading_ = function() {
this.loadListenerKeys_.forEach(ol.events.unlistenByKey);
this.loadListenerKeys_.length = 0;
}
this.setState(loaded > 0 ? ol.TileState.LOADED : ol.TileState.EMPTY);
this.setState(loaded > 0 ? ol.TileState.LOADED : ol.TileState.ERROR);
};