@appbaseio/reactivesearch-vue 2.0.0-alpha → 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.
- package/dist/@appbaseio/reactivesearch-vue.umd.js +28 -1
- package/dist/@appbaseio/reactivesearch-vue.umd.js.map +1 -1
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js +1 -1
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js.map +1 -1
- package/dist/cjs/ReactiveGoogleMap.js +27 -0
- package/dist/cjs/version.js +1 -1
- package/dist/es/ReactiveGoogleMap.js +27 -0
- package/dist/es/version.js +1 -1
- package/package.json +1 -1
|
@@ -1329,6 +1329,13 @@ var ClusterMarkers = {
|
|
|
1329
1329
|
this.triggerAnalytics(id, index);
|
|
1330
1330
|
this.$emit('open-marker-popover', marker.metaData);
|
|
1331
1331
|
},
|
|
1332
|
+
removeMarkers: function removeMarkers() {
|
|
1333
|
+
if (this.$clusterObject) {
|
|
1334
|
+
// Remove old markers
|
|
1335
|
+
this.$clusterObject.clearMarkers(true);
|
|
1336
|
+
this.$markers = [];
|
|
1337
|
+
}
|
|
1338
|
+
},
|
|
1332
1339
|
buildMarkers: function buildMarkers(markersToRender) {
|
|
1333
1340
|
var _this = this;
|
|
1334
1341
|
|
|
@@ -2264,6 +2271,26 @@ var ReactiveGoogleMap = {
|
|
|
2264
2271
|
},
|
|
2265
2272
|
getMapRef: function getMapRef() {
|
|
2266
2273
|
return this.mapRef;
|
|
2274
|
+
},
|
|
2275
|
+
removeMarkers: function removeMarkers() {
|
|
2276
|
+
var clusterManagerInstance;
|
|
2277
|
+
var currentInstance = this;
|
|
2278
|
+
|
|
2279
|
+
while (currentInstance) {
|
|
2280
|
+
if (currentInstance && currentInstance._name === '<ConnectClusterMarkers>') {
|
|
2281
|
+
clusterManagerInstance = currentInstance;
|
|
2282
|
+
currentInstance = null;
|
|
2283
|
+
} else if (currentInstance.$children) {
|
|
2284
|
+
var _currentInstance$$chi = currentInstance.$children;
|
|
2285
|
+
currentInstance = _currentInstance$$chi[0];
|
|
2286
|
+
} else {
|
|
2287
|
+
currentInstance = null;
|
|
2288
|
+
}
|
|
2289
|
+
}
|
|
2290
|
+
|
|
2291
|
+
if (clusterManagerInstance && clusterManagerInstance.removeMarkers) {
|
|
2292
|
+
clusterManagerInstance.removeMarkers();
|
|
2293
|
+
}
|
|
2267
2294
|
}
|
|
2268
2295
|
},
|
|
2269
2296
|
mounted: function mounted() {
|
package/dist/cjs/version.js
CHANGED
|
@@ -1320,6 +1320,13 @@ var ClusterMarkers = {
|
|
|
1320
1320
|
this.triggerAnalytics(id, index);
|
|
1321
1321
|
this.$emit('open-marker-popover', marker.metaData);
|
|
1322
1322
|
},
|
|
1323
|
+
removeMarkers: function removeMarkers() {
|
|
1324
|
+
if (this.$clusterObject) {
|
|
1325
|
+
// Remove old markers
|
|
1326
|
+
this.$clusterObject.clearMarkers(true);
|
|
1327
|
+
this.$markers = [];
|
|
1328
|
+
}
|
|
1329
|
+
},
|
|
1323
1330
|
buildMarkers: function buildMarkers(markersToRender) {
|
|
1324
1331
|
var _this = this;
|
|
1325
1332
|
|
|
@@ -2255,6 +2262,26 @@ var ReactiveGoogleMap = {
|
|
|
2255
2262
|
},
|
|
2256
2263
|
getMapRef: function getMapRef() {
|
|
2257
2264
|
return this.mapRef;
|
|
2265
|
+
},
|
|
2266
|
+
removeMarkers: function removeMarkers() {
|
|
2267
|
+
var clusterManagerInstance;
|
|
2268
|
+
var currentInstance = this;
|
|
2269
|
+
|
|
2270
|
+
while (currentInstance) {
|
|
2271
|
+
if (currentInstance && currentInstance._name === '<ConnectClusterMarkers>') {
|
|
2272
|
+
clusterManagerInstance = currentInstance;
|
|
2273
|
+
currentInstance = null;
|
|
2274
|
+
} else if (currentInstance.$children) {
|
|
2275
|
+
var _currentInstance$$chi = currentInstance.$children;
|
|
2276
|
+
currentInstance = _currentInstance$$chi[0];
|
|
2277
|
+
} else {
|
|
2278
|
+
currentInstance = null;
|
|
2279
|
+
}
|
|
2280
|
+
}
|
|
2281
|
+
|
|
2282
|
+
if (clusterManagerInstance && clusterManagerInstance.removeMarkers) {
|
|
2283
|
+
clusterManagerInstance.removeMarkers();
|
|
2284
|
+
}
|
|
2258
2285
|
}
|
|
2259
2286
|
},
|
|
2260
2287
|
mounted: function mounted() {
|
package/dist/es/version.js
CHANGED