diff --git a/src/ol/source/imagestatic.js b/src/ol/source/imagestatic.js index 5a7a26475a..87dac70ea1 100644 --- a/src/ol/source/imagestatic.js +++ b/src/ol/source/imagestatic.js @@ -79,10 +79,8 @@ ol.source.ImageStatic.prototype.handleImageChange = function(evt) { imageWidth = this.imageSize_[0]; imageHeight = this.imageSize_[1]; } else { - // TODO: remove the type cast when a closure-compiler > 20160315 is used. - // see: https://github.com/google/closure-compiler/pull/1664 - imageWidth = /** @type {number} */ (image.width); - imageHeight = /** @type {number} */ (image.height); + imageWidth = image.width; + imageHeight = image.height; } var resolution = ol.extent.getHeight(imageExtent) / imageHeight; var targetWidth = Math.ceil(ol.extent.getWidth(imageExtent) / resolution);