Fix type check in Raster source
This commit is contained in:
@@ -147,7 +147,9 @@ class RasterSource extends ImageSource {
|
|||||||
* @param {Options} options Options.
|
* @param {Options} options Options.
|
||||||
*/
|
*/
|
||||||
constructor(options) {
|
constructor(options) {
|
||||||
super({});
|
super({
|
||||||
|
projection: null
|
||||||
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
@@ -190,6 +192,10 @@ class RasterSource extends ImageSource {
|
|||||||
this.changed.bind(this));
|
this.changed.bind(this));
|
||||||
|
|
||||||
const layerStatesArray = getLayerStatesArray(this.renderers_);
|
const layerStatesArray = getLayerStatesArray(this.renderers_);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @type {Object<number, import("../layer/Layer.js").State>}
|
||||||
|
*/
|
||||||
const layerStates = {};
|
const layerStates = {};
|
||||||
for (let i = 0, ii = layerStatesArray.length; i < ii; ++i) {
|
for (let i = 0, ii = layerStatesArray.length; i < ii; ++i) {
|
||||||
layerStates[getUid(layerStatesArray[i].layer)] = layerStatesArray[i];
|
layerStates[getUid(layerStatesArray[i].layer)] = layerStatesArray[i];
|
||||||
|
|||||||
Reference in New Issue
Block a user