@cashub/ui 0.19.4 → 0.19.5
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/map/GoogleMap.js +5 -1
- package/package.json +1 -1
package/map/GoogleMap.js
CHANGED
|
@@ -335,7 +335,7 @@ var Map = function Map(_ref3) {
|
|
|
335
335
|
markers.push(marker);
|
|
336
336
|
oms.addMarker(marker);
|
|
337
337
|
});
|
|
338
|
-
new _markerclusterer.MarkerClusterer({
|
|
338
|
+
var markerClusterer = new _markerclusterer.MarkerClusterer({
|
|
339
339
|
map: map,
|
|
340
340
|
markers: markers,
|
|
341
341
|
algorithm: new _markerclusterer.SuperClusterAlgorithm({
|
|
@@ -368,6 +368,10 @@ var Map = function Map(_ref3) {
|
|
|
368
368
|
}
|
|
369
369
|
}
|
|
370
370
|
});
|
|
371
|
+
return function () {
|
|
372
|
+
popup.setMap(null);
|
|
373
|
+
markerClusterer.setMap(null);
|
|
374
|
+
};
|
|
371
375
|
}
|
|
372
376
|
}, [map, locations, checkPrimaryLocation, customPopup]); // geofencing
|
|
373
377
|
|