Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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 - http://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclusterer/docs/examples.html

share|improve this question

1 Answer 1

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: http://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclusterer/examples/speed_test_example.html

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

Your Answer

 
discard

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.