Added generic source option to layer option types
This commit is contained in:
committed by
Andreas Hocevar
parent
8520a18eae
commit
a211666fd8
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user