diff --git a/src/ol/Collection.js b/src/ol/Collection.js index c2ae8689ad..5e0630f957 100644 --- a/src/ol/Collection.js +++ b/src/ol/Collection.js @@ -56,6 +56,8 @@ export class CollectionEvent extends Event { * Collection; they trigger events on the appropriate object, not on the * Collection as a whole. * + * @fires CollectionEvent + * * @template T * @api */ diff --git a/src/ol/PluggableMap.js b/src/ol/PluggableMap.js index 1a6690038f..b4aa1e6ffb 100644 --- a/src/ol/PluggableMap.js +++ b/src/ol/PluggableMap.js @@ -88,7 +88,7 @@ import {create as createTransform, apply as applyTransform} from './transform.js * @typedef {Object} MapOptions * @property {Collection|Array} [controls] * Controls initially added to the map. If not specified, - * {@link module:ol/control/util~defaults} is used. + * {@link module:ol/control~defaults} is used. * @property {number} [pixelRatio=window.devicePixelRatio] The ratio between * physical pixels and device-independent pixels (dips) on the device. * @property {Collection|Array} [interactions] diff --git a/src/ol/TileState.js b/src/ol/TileState.js index 0569b0c02d..f350815140 100644 --- a/src/ol/TileState.js +++ b/src/ol/TileState.js @@ -12,7 +12,6 @@ export default { /** * Indicates that tile loading failed * @type {number} - * @api */ ERROR: 3, EMPTY: 4, diff --git a/src/ol/events.js b/src/ol/events.js index a559532a64..bb9a7d425e 100644 --- a/src/ol/events.js +++ b/src/ol/events.js @@ -22,7 +22,7 @@ import {clear} from './obj.js'; * Listener function. This function is called with an event object as argument. * When the function returns `false`, event propagation will stop. * - * @typedef {function(Event|import("./events/Event.js").default): (void|boolean)} ListenerFunction + * @typedef {function((Event|import("./events/Event.js").default)): (void|boolean)} ListenerFunction * @api */ diff --git a/src/ol/format/WKT.js b/src/ol/format/WKT.js index eb390212f8..9ac6e212ce 100644 --- a/src/ol/format/WKT.js +++ b/src/ol/format/WKT.js @@ -16,6 +16,7 @@ import Polygon from '../geom/Polygon.js'; /** + * Geometry constructors * @enum {function (new:import("../geom/Geometry.js").default, Array, GeometryLayout)} */ const GeometryConstructor = { diff --git a/src/ol/geom/SimpleGeometry.js b/src/ol/geom/SimpleGeometry.js index f3210b7015..055be375b2 100644 --- a/src/ol/geom/SimpleGeometry.js +++ b/src/ol/geom/SimpleGeometry.js @@ -80,7 +80,7 @@ class SimpleGeometry extends Geometry { } /** - * Return the {@link module:ol/geom/GeometryLayout~GeometryLayout layout} of the geometry. + * Return the {@link module:ol/geom/GeometryLayout layout} of the geometry. * @return {GeometryLayout} Layout. * @api */ diff --git a/src/ol/pixel.js b/src/ol/pixel.js index 3d7292a906..1f7336022b 100644 --- a/src/ol/pixel.js +++ b/src/ol/pixel.js @@ -1,3 +1,7 @@ +/** + * @module ol/pixel + */ + /** * An array with two elements, representing a pixel. The first element is the * x-coordinate, the second the y-coordinate of the pixel. diff --git a/src/ol/source/UrlTile.js b/src/ol/source/UrlTile.js index 74859e738a..e8f251e407 100644 --- a/src/ol/source/UrlTile.js +++ b/src/ol/source/UrlTile.js @@ -31,7 +31,7 @@ import {getKeyZXY} from '../tilecoord.js'; * @classdesc * Base class for sources providing tiles divided into a tile grid over http. * - * @fires import("./TileEvent.js").default + * @fires import("./Tile.js").TileSourceEvent */ class UrlTile extends TileSource { /** diff --git a/src/ol/util.js b/src/ol/util.js index 2ba6870916..7b580fd926 100644 --- a/src/ol/util.js +++ b/src/ol/util.js @@ -44,6 +44,7 @@ let uidCounter_ = 0; * * @param {Object} obj The object to get the unique ID for. * @return {string} The unique ID for the object. + * @function module:ol.getUid * @api */ export function getUid(obj) {