googlearchive/js-marker-clusterer

delete all marker and closters

Opened this issue · 1 comments

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

You need to call redraw() afterwards I think