Open junalmeida opened 8 years ago
did you call setMap(null)
or try to remove overlay in different way?
Mind that there is function clearMarkers() for that purpose.
I get this error when i execute:
markerCluster.setMap(null);
This is how many people advice to update your marker cluster, instead you should indeed use what farin says:
markerCluster.clearMarkers();
markerCluster.addMarkers( markers );