Module type for ol.Image

This commit is contained in:
Frederic Junod
2018-03-19 16:07:09 +01:00
parent a3ccfbdd44
commit 5173970f53
6 changed files with 10 additions and 10 deletions

View File

@@ -95,7 +95,7 @@ LayerRenderer.prototype.getLayer = function() {
* @private
*/
LayerRenderer.prototype.handleImageChange_ = function(event) {
const image = /** @type {ol.Image} */ (event.target);
const image = /** @type {module:ol/Image~Image} */ (event.target);
if (image.getState() === ImageState.LOADED) {
this.renderIfReadyAndVisible();
}