Skip to content

Commit

Permalink
More fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gberaudo committed Apr 17, 2018
1 parent b963c9c commit 182b5e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/olcs/core/olimageryprovider.js
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ olcs.core.OLImageryProvider.prototype.requestImage = function(x, y, level) {

const state = tile.getState();
if (state === ol.TileState.LOADED || state === ol.TileState.EMPTY) {
return tile.getImage() || undefined;
return Promise.resolve(tile.getImage()) || undefined;
} else if (state === ol.TileState.ERROR) {
return undefined; // let Cesium continue retrieving later
} else {
Expand Down

0 comments on commit 182b5e0

Please sign in to comment.