diff --git a/src/ol/layer/VectorImage.js b/src/ol/layer/VectorImage.js index b6c9b3d57b..31f5d8ba64 100644 --- a/src/ol/layer/VectorImage.js +++ b/src/ol/layer/VectorImage.js @@ -39,9 +39,9 @@ import {assign} from '../obj.js'; * @property {boolean} [declutter=false] Declutter images and text on this layer. The priority is defined * by the `zIndex` of the style and the render order of features. Higher z-index means higher priority. * Within the same z-index, a feature rendered before another has higher priority. - * @property {import("../style/Style.js").StyleLike} [style] Layer style. See - * {@link import("../style/Style.js").default the style docs} for the default style that will be used if - * this is not defined. + * @property {import("../style/Style.js").StyleLike|null} [style] Layer style. When set to `null`, only + * features that have their own style will be rendered. See {@link module:ol/style} for default style + * which will be used if this is not set. * @property {number} [imageRatio=1] Ratio by which the rendered extent should be larger than the * viewport extent. A larger ratio avoids cut images during panning, but will cause a decrease in performance. * @property {Object} [properties] Arbitrary observable properties. Can be accessed with `#get()` and `#set()`. diff --git a/src/ol/layer/VectorTile.js b/src/ol/layer/VectorTile.js index a12695a1b3..222a785391 100644 --- a/src/ol/layer/VectorTile.js +++ b/src/ol/layer/VectorTile.js @@ -62,9 +62,9 @@ import {assign} from '../obj.js'; * is defined by the z-index of the layer, the `zIndex` of the style and the render order of features. * Higher z-index means higher priority. Within the same z-index, a feature rendered before another has * higher priority. - * @property {import("../style/Style.js").StyleLike} [style] Layer style. See - * {@link import("../style/Style.js").default the style docs} for the default style that will be used if - * this is not defined. + * @property {import("../style/Style.js").StyleLike|null} [style] Layer style. When set to `null`, only + * features that have their own style will be rendered. See {@link module:ol/style} for default style + * which will be used if this is not set. * @property {boolean} [updateWhileAnimating=false] When set to `true`, feature batches will be * recreated during animations. This means that no vectors will be shown clipped, but the setting * will have a performance impact for large amounts of vector data. When set to `false`, batches