Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

So, I have a PostGreSQL DB with 317 datapoints - all spatially enabled through PostGIS. I have queried this using PHP as GeoJSON and overlaid it on Google Maps (using a converting routine). I have also used the MarkerClusterer extension available in google Maps api to cluster all the markers.

Now, I want to remove all the clusters from the map, to display other data. How do I do this?

My markers are stored in an array called markers = []; and the marker clusterer is called like this markerCluster = new MarkerClusterer(map, markers);. I'm not able to find the right function to do this. MarkerClusterer link -

share|improve this question
up vote 0 down vote accepted

Check out the speed test code sample that they provide. That has an option to toggle the marker cluster on or off:

share|improve this answer
Thank you! That worked :) – KaushikTD May 2 '12 at 5:23

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.