ol 9.1.1-dev.1712592599971 → 9.1.1-dev.1712670582165

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -68,19 +68,24 @@ export type Options<VectorSourceType extends import("../source/Vector.js").defau
68
68
  */
69
69
  map?: import("../Map.js").default | undefined;
70
70
  /**
71
- * Declutter images and text on this layer. The priority
72
- * is defined by the `zIndex` of the style and the render order of features. Higher z-index means higher
73
- * priority. Within the same z-index, a feature rendered before another has higher priority. Items will
74
- * not be decluttered against or together with items on other layers with the same `declutter` value. If
75
- * that is needed, use {@link import ("../layer/Vector.js").default} instead.
71
+ * Declutter images and text. Any truthy value will enable
72
+ * decluttering. Within a layer, a feature rendered before another has higher priority. All layers with the
73
+ * same `declutter` value will be decluttered together. The priority is determined by the drawing order of the
74
+ * layers with the same `declutter` value. Higher in the layer stack means higher priority. To declutter distinct
75
+ * layers or groups of layers separately, use different truthy values for `declutter`.
76
76
  */
77
- declutter?: boolean | undefined;
77
+ declutter?: string | number | boolean | undefined;
78
78
  /**
79
79
  * Layer style. When set to `null`, only
80
80
  * features that have their own style will be rendered. See {@link module :ol/style/Style~Style} for the default style
81
81
  * which will be used if this is not set.
82
82
  */
83
- style?: import("../style/Style.js").StyleLike | null | undefined;
83
+ style?: import("../style/Style.js").StyleLike | import("../style/flat.js").FlatStyleLike | null | undefined;
84
+ /**
85
+ * Background color for the layer. If not specified, no background
86
+ * will be rendered.
87
+ */
88
+ background?: import("./Base.js").BackgroundColor | undefined;
84
89
  /**
85
90
  * Ratio by which the rendered extent should be larger than the
86
91
  * viewport extent. A larger ratio avoids cut images during panning, but will cause a decrease in performance.
@@ -124,14 +129,16 @@ export type Options<VectorSourceType extends import("../source/Vector.js").defau
124
129
  * this layer in its layers collection, and the layer will be rendered on top. This is useful for
125
130
  * temporary layers. The standard way to add a layer to a map and have it managed by the map is to
126
131
  * use [map.addLayer()]{@link import("../Map.js").default#addLayer}.
127
- * @property {boolean} [declutter=false] Declutter images and text on this layer. The priority
128
- * is defined by the `zIndex` of the style and the render order of features. Higher z-index means higher
129
- * priority. Within the same z-index, a feature rendered before another has higher priority. Items will
130
- * not be decluttered against or together with items on other layers with the same `declutter` value. If
131
- * that is needed, use {@link import("../layer/Vector.js").default} instead.
132
- * @property {import("../style/Style.js").StyleLike|null} [style] Layer style. When set to `null`, only
132
+ * @property {boolean|string|number} [declutter=false] Declutter images and text. Any truthy value will enable
133
+ * decluttering. Within a layer, a feature rendered before another has higher priority. All layers with the
134
+ * same `declutter` value will be decluttered together. The priority is determined by the drawing order of the
135
+ * layers with the same `declutter` value. Higher in the layer stack means higher priority. To declutter distinct
136
+ * layers or groups of layers separately, use different truthy values for `declutter`.
137
+ * @property {import("../style/Style.js").StyleLike|import("../style/flat.js").FlatStyleLike|null} [style] Layer style. When set to `null`, only
133
138
  * features that have their own style will be rendered. See {@link module:ol/style/Style~Style} for the default style
134
139
  * which will be used if this is not set.
140
+ * @property {import("./Base.js").BackgroundColor} [background] Background color for the layer. If not specified, no background
141
+ * will be rendered.
135
142
  * @property {number} [imageRatio=1] Ratio by which the rendered extent should be larger than the
136
143
  * viewport extent. A larger ratio avoids cut images during panning, but will cause a decrease in performance.
137
144
  * @property {Object<string, *>} [properties] Arbitrary observable properties. Can be accessed with `#get()` and `#set()`.
@@ -1 +1 @@
1
- {"version":3,"file":"VectorImage.d.ts","sourceRoot":"","sources":["VectorImage.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AAEH;;;;;;;;;;;;;;GAcG;AACH;IACE;;OAEG;IACH,6DAaC;IANC;;;OAGG;IACH,oBAC2D;IAG7D;;OAEG;IACH,iBAFY,MAAM,CAIjB;CAKF;2CA1F0C,wCAAwC;4BADvD,iBAAiB"}
1
+ {"version":3,"file":"VectorImage.d.ts","sourceRoot":"","sources":["VectorImage.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AAEH;;;;;;;;;;;;;;GAcG;AACH;IACE;;OAEG;IACH,6DAaC;IANC;;;OAGG;IACH,oBAC2D;IAG7D;;OAEG;IACH,iBAFY,MAAM,CAIjB;CAKF;2CA5F0C,wCAAwC;4BADvD,iBAAiB"}
@@ -35,14 +35,16 @@ import CanvasVectorImageLayerRenderer from '../renderer/canvas/VectorImageLayer.
35
35
  * this layer in its layers collection, and the layer will be rendered on top. This is useful for
36
36
  * temporary layers. The standard way to add a layer to a map and have it managed by the map is to
37
37
  * use [map.addLayer()]{@link import("../Map.js").default#addLayer}.
38
- * @property {boolean} [declutter=false] Declutter images and text on this layer. The priority
39
- * is defined by the `zIndex` of the style and the render order of features. Higher z-index means higher
40
- * priority. Within the same z-index, a feature rendered before another has higher priority. Items will
41
- * not be decluttered against or together with items on other layers with the same `declutter` value. If
42
- * that is needed, use {@link import("../layer/Vector.js").default} instead.
43
- * @property {import("../style/Style.js").StyleLike|null} [style] Layer style. When set to `null`, only
38
+ * @property {boolean|string|number} [declutter=false] Declutter images and text. Any truthy value will enable
39
+ * decluttering. Within a layer, a feature rendered before another has higher priority. All layers with the
40
+ * same `declutter` value will be decluttered together. The priority is determined by the drawing order of the
41
+ * layers with the same `declutter` value. Higher in the layer stack means higher priority. To declutter distinct
42
+ * layers or groups of layers separately, use different truthy values for `declutter`.
43
+ * @property {import("../style/Style.js").StyleLike|import("../style/flat.js").FlatStyleLike|null} [style] Layer style. When set to `null`, only
44
44
  * features that have their own style will be rendered. See {@link module:ol/style/Style~Style} for the default style
45
45
  * which will be used if this is not set.
46
+ * @property {import("./Base.js").BackgroundColor} [background] Background color for the layer. If not specified, no background
47
+ * will be rendered.
46
48
  * @property {number} [imageRatio=1] Ratio by which the rendered extent should be larger than the
47
49
  * viewport extent. A larger ratio avoids cut images during panning, but will cause a decrease in performance.
48
50
  * @property {Object<string, *>} [properties] Arbitrary observable properties. Can be accessed with `#get()` and `#set()`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ol",
3
- "version": "9.1.1-dev.1712592599971",
3
+ "version": "9.1.1-dev.1712670582165",
4
4
  "description": "OpenLayers mapping library",
5
5
  "keywords": [
6
6
  "map",
package/util.js CHANGED
@@ -33,4 +33,4 @@ export function getUid(obj) {
33
33
  * OpenLayers version.
34
34
  * @type {string}
35
35
  */
36
- export const VERSION = '9.1.1-dev.1712592599971';
36
+ export const VERSION = '9.1.1-dev.1712670582165';