Continue loading tiles when image is not ready yet
This commit is contained in:
committed by
Tim Schaub
parent
53473ddeb1
commit
e2bdbb1dbe
@@ -287,16 +287,19 @@ ol.source.Raster.prototype.composeFrame_ = function(frameState, callback) {
|
|||||||
imageDatas[i] = imageData;
|
imageDatas[i] = imageData;
|
||||||
} else {
|
} else {
|
||||||
// image not yet ready
|
// image not yet ready
|
||||||
return;
|
imageDatas = null;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var data = {};
|
if (imageDatas) {
|
||||||
this.dispatchEvent(new ol.source.Raster.Event(
|
var data = {};
|
||||||
ol.source.Raster.EventType.BEFOREOPERATIONS, frameState, data));
|
this.dispatchEvent(new ol.source.Raster.Event(
|
||||||
|
ol.source.Raster.EventType.BEFOREOPERATIONS, frameState, data));
|
||||||
|
|
||||||
this.worker_.process(imageDatas, data,
|
this.worker_.process(imageDatas, data,
|
||||||
this.onWorkerComplete_.bind(this, frameState, callback));
|
this.onWorkerComplete_.bind(this, frameState, callback));
|
||||||
|
}
|
||||||
|
|
||||||
frameState.tileQueue.loadMoreTiles(16, 16);
|
frameState.tileQueue.loadMoreTiles(16, 16);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user