react-map4d-map 1.3.7 → 1.3.8
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/index.js +9 -4
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +9 -4
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -1356,7 +1356,7 @@ var MFMarkerCluster = function MFMarkerCluster(props) {
|
|
|
1356
1356
|
(_markerClusterRef$cur = markerClusterRef.current) === null || _markerClusterRef$cur === void 0 ? void 0 : _markerClusterRef$cur.setMap(null);
|
|
1357
1357
|
|
|
1358
1358
|
if (theMap) {
|
|
1359
|
-
var
|
|
1359
|
+
var _markerRefs$current;
|
|
1360
1360
|
|
|
1361
1361
|
var option = {
|
|
1362
1362
|
minZoom: minZoom,
|
|
@@ -1369,9 +1369,14 @@ var MFMarkerCluster = function MFMarkerCluster(props) {
|
|
|
1369
1369
|
delete option[key];
|
|
1370
1370
|
}
|
|
1371
1371
|
});
|
|
1372
|
-
|
|
1373
|
-
(
|
|
1374
|
-
|
|
1372
|
+
|
|
1373
|
+
if (markerRefs.current && ((_markerRefs$current = markerRefs.current) === null || _markerRefs$current === void 0 ? void 0 : _markerRefs$current.length) > 0) {
|
|
1374
|
+
var _markerClusterRef$cur2;
|
|
1375
|
+
|
|
1376
|
+
markerClusterRef.current = new map4d.MarkerClusterer(markerRefs.current, option);
|
|
1377
|
+
(_markerClusterRef$cur2 = markerClusterRef.current) === null || _markerClusterRef$cur2 === void 0 ? void 0 : _markerClusterRef$cur2.setMap(theMap);
|
|
1378
|
+
onCreated && onCreated(markerClusterRef.current);
|
|
1379
|
+
}
|
|
1375
1380
|
}
|
|
1376
1381
|
};
|
|
1377
1382
|
|