Added generic source option to layer option types

This commit is contained in:
Simon Seyock
2021-02-26 11:24:15 +01:00
committed by Andreas Hocevar
parent 8520a18eae
commit a211666fd8
10 changed files with 24 additions and 16 deletions
+3 -1
View File
@@ -88,7 +88,9 @@ class VectorTileLayer extends BaseVectorLayer {
delete baseOptions.preload;
delete baseOptions.useInterimTilesOnError;
super(/** @type {import("./BaseVector.js").Options} */ (baseOptions));
super(
/** @type {import("./BaseVector.js").Options<import("../source/VectorTile.js").default>} */ (baseOptions)
);
if (options.renderMode === VectorTileRenderType.IMAGE) {
//FIXME deprecated - remove this check in v7.