Как удалить кластер маркеров с карты Google (Ionic4)
поток кодов деталей:
импорт * как MarkerClusterer из 'node-js-marker-clusterterer';
markerCluster: MarkerClusterer;
if (this.markerCluster) {
this.markerCluster.clearMarkers();
}
this.markerCluster = this.map.addMarkerClusterSync({
markers: this.locations,
boundsDraw: false,
icons: [
{min: 2, max: 100, url: "./assets/icon/favicon.ico", anchor:
{x: 16, y: 16}}
]
});
this.markerCluster.clearMarkers (); ← этот код не работает