@cashub/ui 0.19.4 → 0.19.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.
Files changed (2) hide show
  1. package/map/GoogleMap.js +8 -1
  2. 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,13 @@ var Map = function Map(_ref3) {
368
368
  }
369
369
  }
370
370
  });
371
+ return function () {
372
+ popup.setMap(null);
373
+ markerClusterer.setMap(null);
374
+ markers.forEach(function (marker) {
375
+ marker.setMap(null);
376
+ });
377
+ };
371
378
  }
372
379
  }, [map, locations, checkPrimaryLocation, customPopup]); // geofencing
373
380
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cashub/ui",
3
- "version": "0.19.4",
3
+ "version": "0.19.6",
4
4
  "private": false,
5
5
  "author": "CASHUB Team",
6
6
  "description": "CASHUB UI components library",