diff --git a/src/ol/format/Feature.js b/src/ol/format/Feature.js index ec462816bd..afc8aab5a1 100644 --- a/src/ol/format/Feature.js +++ b/src/ol/format/Feature.js @@ -55,7 +55,7 @@ import Units from '../proj/Units.js'; * Abstract base class; normally only used for creating subclasses and not * instantiated in apps. * Base class for feature formats. - * {FeatureFormat} subclasses provide the ability to decode and encode + * {@link module:ol/format/Feature~FeatureFormat} subclasses provide the ability to decode and encode * {@link module:ol/Feature~Feature} objects from a variety of commonly used geospatial * file formats. See the documentation for each format for more details. * diff --git a/src/ol/format/IIIFInfo.js b/src/ol/format/IIIFInfo.js index a7d40d8658..8a3bd27bd5 100644 --- a/src/ol/format/IIIFInfo.js +++ b/src/ol/format/IIIFInfo.js @@ -40,8 +40,8 @@ import {assert} from '../asserts.js'; */ /** - * @typedef {Object|Object - * |TileInfo>} ImageInformationResponse + * @typedef {Object|Object|TileInfo>} + * ImageInformationResponse */ /** diff --git a/src/ol/style/Style.js b/src/ol/style/Style.js index ed7e53eec9..5d44dc6c6c 100644 --- a/src/ol/style/Style.js +++ b/src/ol/style/Style.js @@ -2,8 +2,67 @@ * @module ol/style/Style */ +import {assert} from '../asserts.js'; +import GeometryType from '../geom/GeometryType.js'; +import CircleStyle from './Circle.js'; +import Fill from './Fill.js'; +import Stroke from './Stroke.js'; + + /** - * Feature styles. + * A function that takes an {@link module:ol/Feature} and a `{number}` + * representing the view's resolution. The function should return a + * {@link module:ol/style/Style} or an array of them. This way e.g. a + * vector layer can be styled. + * + * @typedef {function(import("../Feature.js").FeatureLike, number):(Style|Array