@aiaiai-pt/design-system 0.5.5 → 0.5.6
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.
|
@@ -44,6 +44,8 @@
|
|
|
44
44
|
let _map = $state();
|
|
45
45
|
/** @type {any} — VectorSource */
|
|
46
46
|
let _vectorSource = $state();
|
|
47
|
+
/** @type {any} — Cluster source */
|
|
48
|
+
let _clusterSource = $state();
|
|
47
49
|
/** @type {any} — Feature constructor */
|
|
48
50
|
let _Feature;
|
|
49
51
|
/** @type {any} — Point constructor */
|
|
@@ -68,6 +70,7 @@
|
|
|
68
70
|
});
|
|
69
71
|
_vectorSource.clear();
|
|
70
72
|
_vectorSource.addFeatures(features);
|
|
73
|
+
_clusterSource?.refresh();
|
|
71
74
|
});
|
|
72
75
|
|
|
73
76
|
$effect(() => {
|
|
@@ -119,6 +122,7 @@
|
|
|
119
122
|
|
|
120
123
|
// Store refs for reactive effects
|
|
121
124
|
_vectorSource = vectorSource;
|
|
125
|
+
_clusterSource = clusterSource;
|
|
122
126
|
_Feature = Feature;
|
|
123
127
|
_Point = Point;
|
|
124
128
|
|