googlearchive / js-marker-clusterer

A marker clustering library for the Google Maps JavaScript API v3.
https://googlemaps.github.io/js-marker-clusterer/docs/reference.html
Apache License 2.0
1.28k stars 775 forks source link

delete all marker and closters #101

Open VesperDev opened 7 years ago

VesperDev commented 7 years ago

I have a question as I can remove bookmarks and closters on the map have the following code

$scope.ClearAllMarkers = function (TipoEntidad) {
    for (var c = 0; c < markers.length; c++) {
        markers[c].setMap(null);
    }
};

$scope.clearClusters = function () {
    markerCluster.clearMarkers();
};

captura

when I run the function does not erase what the problem closters Thank you very much for your time

Anahkiasen commented 7 years ago

You need to call redraw() afterwards I think