ol 9.2.2-dev.1716040147863 → 9.2.2-dev.1716040825122
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.
- package/dist/ol.js +1 -1
- package/dist/ol.js.map +1 -1
- package/package.json +1 -1
- package/source/Cluster.d.ts +2 -2
- package/source/Cluster.d.ts.map +1 -1
- package/source/Cluster.js +3 -2
- package/util.js +1 -1
package/package.json
CHANGED
package/source/Cluster.d.ts
CHANGED
|
@@ -109,9 +109,9 @@ export type Options<FeatureType extends import("../Feature.js").FeatureLike> = {
|
|
|
109
109
|
*/
|
|
110
110
|
declare class Cluster<FeatureType extends import("../Feature.js").FeatureLike> extends VectorSource<Feature<import("../geom/Geometry.js").default>> {
|
|
111
111
|
/**
|
|
112
|
-
* @param {Options<FeatureType>} options Cluster options.
|
|
112
|
+
* @param {Options<FeatureType>} [options] Cluster options.
|
|
113
113
|
*/
|
|
114
|
-
constructor(options
|
|
114
|
+
constructor(options?: Options<FeatureType> | undefined);
|
|
115
115
|
/**
|
|
116
116
|
* @type {number|undefined}
|
|
117
117
|
* @protected
|
package/source/Cluster.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Cluster.d.ts","sourceRoot":"","sources":["Cluster.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+BA6BuB,WAAW,KAAE,CAAC,KAAK,CAAC;;;;;;;;;;;;;;4BAapB,KAAK,QAAE,MAAM,WAAW,CAAC,KAAE,OAAO;;;;;;;;;;AAxBzD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AAEH;;;;;;;;;;;;GAYG;AACH;IACE;;OAEG;IACH,
|
|
1
|
+
{"version":3,"file":"Cluster.d.ts","sourceRoot":"","sources":["Cluster.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+BA6BuB,WAAW,KAAE,CAAC,KAAK,CAAC;;;;;;;;;;;;;;4BAapB,KAAK,QAAE,MAAM,WAAW,CAAC,KAAE,OAAO;;;;;;;;;;AAxBzD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AAEH;;;;;;;;;;;;GAYG;AACH;IACE;;OAEG;IACH,wDAwEC;IAjEC;;;OAGG;IACH,sBAHU,MAAM,GAAC,SAAS,CAGC;IAE3B;;;OAGG;IACH,oBAHU,MAAM,CAGsD;IAEtE;;;OAGG;IACH,uBAHU,MAAM,CAG2B;IAE3C;;;OAGG;IACH,8BAHU,MAAM,CAGW;IAE3B;;;OAGG;IACH,oBAHU,MAAM,OAAO,CAAC,CAGN;IAElB;;;;OAIG;IACH,mDAxFgC,CAAC,KAAK,CAAC,CAiGpC;IAEH;;;OAGG;IACH,6BAAiD;IAEjD;;;OAGG;IACH,kBAHU,aAAa,WAAW,CAAC,GAAC,IAAI,CAGtB;IAElB;;OAEG;IACH,sBAA4C;IAgB9C;;;;OAIG;IACH,eAHY,MAAM,CAKjB;IAED;;;;OAIG;IACH,aAHY,aAAa,WAAW,CAAC,GAAC,IAAI,CAKzC;IAeD;;;;OAIG;IACH,sBAHW,MAAM,QAKhB;IAED;;;;;OAKG;IACH,4BAHW,MAAM,QAKhB;IAED;;;;OAIG;IACH,kBAHY,MAAM,CAKjB;IAED;;;;OAIG;IACH,kBAHW,aAAa,WAAW,CAAC,GAAC,IAAI,QAYxC;IAWD;;;;OAIG;IACH,yBAHW,MAAM,eACN,MAAM,QAahB;IAED;;OAEG;IACH,0BAkCC;IAED;;;;;OAKG;IACH,kCALW,MAAM,WAAW,CAAC,UAClB,OAAO,cAAc,EAAE,MAAM,GAC5B,OAAO,CA2BlB;CACF;kBArUiB,kBAAkB;oBADhB,eAAe;yBAEV,aAAa"}
|
package/source/Cluster.js
CHANGED
|
@@ -71,9 +71,10 @@ import {getUid} from '../util.js';
|
|
|
71
71
|
*/
|
|
72
72
|
class Cluster extends VectorSource {
|
|
73
73
|
/**
|
|
74
|
-
* @param {Options<FeatureType>} options Cluster options.
|
|
74
|
+
* @param {Options<FeatureType>} [options] Cluster options.
|
|
75
75
|
*/
|
|
76
76
|
constructor(options) {
|
|
77
|
+
options = options || {};
|
|
77
78
|
super({
|
|
78
79
|
attributions: options.attributions,
|
|
79
80
|
wrapX: options.wrapX,
|
|
@@ -180,7 +181,7 @@ class Cluster extends VectorSource {
|
|
|
180
181
|
* @param {import("../proj/Projection.js").default} projection Projection.
|
|
181
182
|
*/
|
|
182
183
|
loadFeatures(extent, resolution, projection) {
|
|
183
|
-
this.source
|
|
184
|
+
this.source?.loadFeatures(extent, resolution, projection);
|
|
184
185
|
if (resolution !== this.resolution) {
|
|
185
186
|
this.resolution = resolution;
|
|
186
187
|
this.refresh();
|
package/util.js
CHANGED