diff --git a/src/ol/layer/BaseVector.js b/src/ol/layer/BaseVector.js index 32e210e3923..45d0faf4bce 100644 --- a/src/ol/layer/BaseVector.js +++ b/src/ol/layer/BaseVector.js @@ -13,7 +13,7 @@ import { } from '../render/canvas/style.js'; /** - * @template {import("../source/Vector.js").default|import("../source/VectorTile.js").default} VectorSourceType + * @template {import("../source/Vector.js").default|import("../source/VectorTile.js").default} VectorSourceType * @typedef {Object} Options * @property {string} [className='ol-layer'] A CSS class name to set to the layer element. * @property {number} [opacity=1] Opacity (0, 1). @@ -77,7 +77,7 @@ const Property = { * property on the layer object; for example, setting `title: 'My Title'` in the * options means that `title` is observable, and has get/set accessors. * - * @template {import("../source/Vector.js").default|import("../source/VectorTile.js").default} VectorSourceType + * @template {import("../source/Vector.js").default|import("../source/VectorTile.js").default} VectorSourceType * @template {import("../renderer/canvas/VectorLayer.js").default|import("../renderer/canvas/VectorTileLayer.js").default|import("../renderer/canvas/VectorImageLayer.js").default|import("../renderer/webgl/PointsLayer.js").default} RendererType * @extends {Layer} * @api diff --git a/src/ol/layer/Vector.js b/src/ol/layer/Vector.js index 55736207415..720f621dc98 100644 --- a/src/ol/layer/Vector.js +++ b/src/ol/layer/Vector.js @@ -15,7 +15,7 @@ import CanvasVectorLayerRenderer from '../renderer/canvas/VectorLayer.js'; * property on the layer object; for example, setting `title: 'My Title'` in the * options means that `title` is observable, and has get/set accessors. * - * @template {import("../source/Vector.js").default} VectorSourceType + * @template {import("../source/Vector.js").default} VectorSourceType * @extends {BaseVectorLayer} * @api */ diff --git a/src/ol/layer/VectorTile.js b/src/ol/layer/VectorTile.js index 37faf813ca5..d2f51fd4a8d 100644 --- a/src/ol/layer/VectorTile.js +++ b/src/ol/layer/VectorTile.js @@ -22,6 +22,7 @@ import {assert} from '../asserts.js'; /** * @typedef {Object} Options + * @template {import("../source/VectorTile.js").default} VectorTileSourceType * @property {string} [className='ol-layer'] A CSS class name to set to the layer element. * @property {number} [opacity=1] Opacity (0, 1). * @property {boolean} [visible=true] Visibility. @@ -55,7 +56,7 @@ import {assert} from '../asserts.js'; * this mode for improved performance and visual epxerience on vector tile layers with not too many * rendered features (e.g. for highlighting a subset of features of another layer with the same * source). - * @property {import("../source/VectorTile.js").default} [source] Source. + * @property {VectorTileSourceType} [source] Source. * @property {import("../Map.js").default} [map] Sets the layer as overlay on a map. The map will not manage * this layer in its layers collection, and the layer will be rendered on top. This is useful for * temporary layers. The standard way to add a layer to a map and have it managed by the map is to @@ -90,7 +91,8 @@ import {assert} from '../asserts.js'; * options means that `title` is observable, and has get/set accessors. * * @param {Options} [options] Options. - * @extends {BaseVectorLayer} + * @template {import("../source/VectorTile.js").default} VectorTileSourceType + * @extends {BaseVectorLayer} * @api */ class VectorTileLayer extends BaseVectorLayer { @@ -105,7 +107,7 @@ class VectorTileLayer extends BaseVectorLayer { delete baseOptions.useInterimTilesOnError; super( - /** @type {import("./BaseVector.js").Options} */ ( + /** @type {import("./BaseVector.js").Options} */ ( baseOptions ), );