diff --git a/src/ol/layer/VectorTile.js b/src/ol/layer/VectorTile.js index 31009dce35..3b5304be64 100644 --- a/src/ol/layer/VectorTile.js +++ b/src/ol/layer/VectorTile.js @@ -40,7 +40,7 @@ import {assign} from '../obj.js'; * animations, but slower performance than the other options. * * When `declutter` is set to `true`, `'hybrid'` will be used instead of `'image'`. - * @property {ol.source.VectorTile} [source] Source. + * @property {module:ol/source/VectorTile~VectorTileSource} [source] Source. * @property {module:ol/PluggableMap~PluggableMap} [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 @@ -161,9 +161,9 @@ VectorTileLayer.prototype.setUseInterimTilesOnError = function(useInterimTilesOn /** - * Return the associated {@link ol.source.VectorTile vectortilesource} of the layer. + * Return the associated {@link module:ol/source/VectorTile~VectorTileSource vectortilesource} of the layer. * @function - * @return {ol.source.VectorTile} Source. + * @return {module:ol/source/VectorTile~VectorTileSource} Source. * @api */ VectorTileLayer.prototype.getSource; diff --git a/src/ol/renderer/canvas/VectorTileLayer.js b/src/ol/renderer/canvas/VectorTileLayer.js index 52b3eb824f..c780eba13f 100644 --- a/src/ol/renderer/canvas/VectorTileLayer.js +++ b/src/ol/renderer/canvas/VectorTileLayer.js @@ -167,7 +167,7 @@ CanvasVectorTileLayerRenderer.prototype.createReplayGroup_ = function(tile, fram return; } - const source = /** @type {ol.source.VectorTile} */ (layer.getSource()); + const source = /** @type {module:ol/source/VectorTile~VectorTileSource} */ (layer.getSource()); const sourceTileGrid = source.getTileGrid(); const tileGrid = source.getTileGridForProjection(projection); const resolution = tileGrid.getResolution(tile.tileCoord[0]); @@ -271,7 +271,7 @@ CanvasVectorTileLayerRenderer.prototype.forEachFeatureAtCoordinate = function(co /** @type {Array.} */ const renderedTiles = this.renderedTiles; - const source = /** @type {ol.source.VectorTile} */ (layer.getSource()); + const source = /** @type {module:ol/source/VectorTile~VectorTileSource} */ (layer.getSource()); const tileGrid = source.getTileGridForProjection(frameState.viewState.projection); let bufferedExtent, found; let i, ii, replayGroup; @@ -316,7 +316,7 @@ CanvasVectorTileLayerRenderer.prototype.forEachFeatureAtCoordinate = function(co */ CanvasVectorTileLayerRenderer.prototype.getReplayTransform_ = function(tile, frameState) { const layer = this.getLayer(); - const source = /** @type {ol.source.VectorTile} */ (layer.getSource()); + const source = /** @type {module:ol/source/VectorTile~VectorTileSource} */ (layer.getSource()); const tileGrid = source.getTileGrid(); const tileCoord = tile.tileCoord; const tileResolution = tileGrid.getResolution(tileCoord[0]); @@ -365,7 +365,7 @@ CanvasVectorTileLayerRenderer.prototype.handleStyleImageChange_ = function(event CanvasVectorTileLayerRenderer.prototype.postCompose = function(context, frameState, layerState) { const layer = this.getLayer(); const declutterReplays = layer.getDeclutter() ? {} : null; - const source = /** @type {ol.source.VectorTile} */ (layer.getSource()); + const source = /** @type {module:ol/source/VectorTile~VectorTileSource} */ (layer.getSource()); const renderMode = layer.getRenderMode(); const replayTypes = VECTOR_REPLAYS[renderMode]; const pixelRatio = frameState.pixelRatio; @@ -490,7 +490,7 @@ CanvasVectorTileLayerRenderer.prototype.renderTileImage_ = function( const tileCoord = tile.wrappedTileCoord; const z = tileCoord[0]; const pixelRatio = frameState.pixelRatio; - const source = /** @type {ol.source.VectorTile} */ (layer.getSource()); + const source = /** @type {module:ol/source/VectorTile~VectorTileSource} */ (layer.getSource()); const tileGrid = source.getTileGridForProjection(frameState.viewState.projection); const resolution = tileGrid.getResolution(z); const context = tile.getContext(layer); diff --git a/src/ol/source/Vector.js b/src/ol/source/Vector.js index 217d2e9a80..8f16bf4cba 100644 --- a/src/ol/source/Vector.js +++ b/src/ol/source/Vector.js @@ -137,7 +137,7 @@ inherits(VectorSourceEvent, Event); /** * @classdesc * Provides a source of features for vector layers. Vector features provided - * by this source are suitable for editing. See {@link ol.source.VectorTile} for + * by this source are suitable for editing. See {@link module:ol/source/VectorTile~VectorTileSource} for * vector data that is optimized for rendering. * * @constructor