ublo-lib 1.25.10 → 1.25.11
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.
|
@@ -1,18 +1,14 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
+
import MarkerClusterGroup from "react-leaflet-cluster";
|
|
2
3
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
4
|
export default function Cluster({
|
|
4
5
|
isEditing,
|
|
5
6
|
children
|
|
6
7
|
}) {
|
|
7
8
|
if (isEditing) return children;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
children: children
|
|
14
|
-
});
|
|
15
|
-
} catch (e) {
|
|
16
|
-
return children;
|
|
17
|
-
}
|
|
9
|
+
return _jsx(MarkerClusterGroup, {
|
|
10
|
+
maxClusterRadius: 20,
|
|
11
|
+
chunkedLoading: true,
|
|
12
|
+
children: children
|
|
13
|
+
});
|
|
18
14
|
}
|