ol 9.1.1-dev.1715778879108 → 9.1.1-dev.1715779213254

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.
@@ -134,7 +134,7 @@ declare class BaseVectorLayer<VectorSourceType extends import("../source/VectorT
134
134
  private renderBuffer_;
135
135
  /**
136
136
  * User provided style.
137
- * @type {import("../style/Style.js").StyleLike}
137
+ * @type {import("../style/Style.js").StyleLike|import("../style/flat.js").FlatStyleLike}
138
138
  * @private
139
139
  */
140
140
  private style_;
@@ -166,10 +166,10 @@ declare class BaseVectorLayer<VectorSourceType extends import("../source/VectorT
166
166
  /**
167
167
  * Get the style for features. This returns whatever was passed to the `style`
168
168
  * option at construction or to the `setStyle` method.
169
- * @return {import("../style/Style.js").StyleLike|null|undefined} Layer style.
169
+ * @return {import("../style/Style.js").StyleLike|import("../style/flat.js").FlatStyleLike|null|undefined} Layer style.
170
170
  * @api
171
171
  */
172
- getStyle(): import("../style/Style.js").StyleLike | null | undefined;
172
+ getStyle(): import("../style/Style.js").StyleLike | import("../style/flat.js").FlatStyleLike | null | undefined;
173
173
  /**
174
174
  * Get the style function.
175
175
  * @return {import("../style/Style.js").StyleFunction|undefined} Layer style function.
@@ -1 +1 @@
1
- {"version":3,"file":"BaseVector.d.ts","sourceRoot":"","sources":["BaseVector.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwEA;;;;;;;;;;;GAWG;AACH;IACE;;OAEG;IACH,6DAyDC;IA9CC;;;OAGG;IACH,mBAA2E;IAE3E;;;OAGG;IACH,sBACiE;IAEjE;;;;OAIG;IACH,eAAkB;IAElB;;;;OAIG;IACH,uBAA+B;IAI/B;;;OAGG;IACH,8BAGW;IAEX;;;OAGG;IACH,gCAGW;IA4Bb;;OAEG;IACH,mBAFY,MAAM,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AS,CAKxG;IAED;;;;OAIG;IACH,oBAHY,OAAO,mBAAmB,EAAE,aAAa,GAAC,SAAS,CAK9D;IAED;;;OAGG;IACH,2BAHY,OAAO,CAKlB;IAED;;;OAGG;IACH,6BAHY,OAAO,CAKlB;IAeD;;;OAGG;IACH,4BAHW,OAAO,cAAc,EAAE,aAAa,GAAC,IAAI,GAAC,SAAS,QAK7D;IAED;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,4HAMC;CACF;kBA9QiB,YAAY"}
@@ -112,7 +112,7 @@ class BaseVectorLayer extends Layer {
112
112
 
113
113
  /**
114
114
  * User provided style.
115
- * @type {import("../style/Style.js").StyleLike}
115
+ * @type {import("../style/Style.js").StyleLike|import("../style/flat.js").FlatStyleLike}
116
116
  * @private
117
117
  */
118
118
  this.style_ = null;
@@ -190,7 +190,7 @@ class BaseVectorLayer extends Layer {
190
190
  /**
191
191
  * Get the style for features. This returns whatever was passed to the `style`
192
192
  * option at construction or to the `setStyle` method.
193
- * @return {import("../style/Style.js").StyleLike|null|undefined} Layer style.
193
+ * @return {import("../style/Style.js").StyleLike|import("../style/flat.js").FlatStyleLike|null|undefined} Layer style.
194
194
  * @api
195
195
  */
196
196
  getStyle() {
@@ -265,9 +265,10 @@ class BaseVectorLayer extends Layer {
265
265
  * @api
266
266
  */
267
267
  setStyle(style) {
268
- this.style_ = toStyleLike(style);
268
+ this.style_ = style === undefined ? createDefaultStyle : style;
269
+ const styleLike = toStyleLike(style);
269
270
  this.styleFunction_ =
270
- style === null ? undefined : toStyleFunction(this.style_);
271
+ style === null ? undefined : toStyleFunction(styleLike);
271
272
  this.changed();
272
273
  }
273
274
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ol",
3
- "version": "9.1.1-dev.1715778879108",
3
+ "version": "9.1.1-dev.1715779213254",
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.1715778879108';
36
+ export const VERSION = '9.1.1-dev.1715779213254';