diff --git a/src/ol/source/Raster.js b/src/ol/source/Raster.js index 5b0ad3d1a3..1bd7d4d1d7 100644 --- a/src/ol/source/Raster.js +++ b/src/ol/source/Raster.js @@ -147,7 +147,9 @@ class RasterSource extends ImageSource { * @param {Options} options Options. */ constructor(options) { - super({}); + super({ + projection: null + }); /** * @private @@ -190,6 +192,10 @@ class RasterSource extends ImageSource { this.changed.bind(this)); const layerStatesArray = getLayerStatesArray(this.renderers_); + + /** + * @type {Object} + */ const layerStates = {}; for (let i = 0, ii = layerStatesArray.length; i < ii; ++i) { layerStates[getUid(layerStatesArray[i].layer)] = layerStatesArray[i];