Take the 2-minute tour ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

I've created a hideous and slow Google Map at:

http://test.barrycarter.info/gmap4.html

The markers represent temperatures at given locations, and the polygons represent a Voronoi diagram of the temperatures (sample data: not accurate).

Question: is there something Google Maps API can do automatically to display less information at one time? For example, not displaying all the markers or every single polygon, even the really small ones?

I realize I could tweak my app to display polygons/markers based on zoom level, but is there a way to make Google Maps API do the work?

share|improve this question
add comment

1 Answer 1

up vote 1 down vote accepted

You need to cluster your markers. It's tedious to do on the server side, but there are a few client-side clustering plugins you can use. The most popular one is MarkerClusterer.

MarkerClusterer v3:

Why many markers degrade performance, and how to improve it (MarkerClusterer comes out tops):

share|improve this answer
add comment

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.