@appbaseio/reactivesearch-vue 2.0.0-alpha.1 → 2.0.0-alpha.2

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.
@@ -36426,6 +36426,13 @@
36426
36426
  this.triggerAnalytics(id, index);
36427
36427
  this.$emit('open-marker-popover', marker.metaData);
36428
36428
  },
36429
+ removeMarkers: function removeMarkers() {
36430
+ if (this.$clusterObject) {
36431
+ // Remove old markers
36432
+ this.$clusterObject.clearMarkers(true);
36433
+ this.$markers = [];
36434
+ }
36435
+ },
36429
36436
  buildMarkers: function buildMarkers(markersToRender) {
36430
36437
  var _this = this;
36431
36438
 
@@ -37361,6 +37368,26 @@
37361
37368
  },
37362
37369
  getMapRef: function getMapRef() {
37363
37370
  return this.mapRef;
37371
+ },
37372
+ removeMarkers: function removeMarkers() {
37373
+ var clusterManagerInstance;
37374
+ var currentInstance = this;
37375
+
37376
+ while (currentInstance) {
37377
+ if (currentInstance && currentInstance._name === '<ConnectClusterMarkers>') {
37378
+ clusterManagerInstance = currentInstance;
37379
+ currentInstance = null;
37380
+ } else if (currentInstance.$children) {
37381
+ var _currentInstance$$chi = currentInstance.$children;
37382
+ currentInstance = _currentInstance$$chi[0];
37383
+ } else {
37384
+ currentInstance = null;
37385
+ }
37386
+ }
37387
+
37388
+ if (clusterManagerInstance && clusterManagerInstance.removeMarkers) {
37389
+ clusterManagerInstance.removeMarkers();
37390
+ }
37364
37391
  }
37365
37392
  },
37366
37393
  mounted: function mounted() {
@@ -37964,7 +37991,7 @@
37964
37991
  });
37965
37992
  }
37966
37993
 
37967
- var version = "2.0.0-alpha.1";
37994
+ var version = "2.0.0-alpha.2";
37968
37995
 
37969
37996
  var _templateObject$q, _templateObject2$c;
37970
37997