Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Combine map points - Google map API

I have a javascript Google Map that starts with a full world view and has a lot of clustered points in certain areas. Because the points on the map are so close it just looks like a lot of overlapping pins and makes it impossible to click on any of them accepted the top pin. What I'd like to do is combine all of the clustered points into one point that could be clicked for a list of all of the combined locations when viewing the whole map or a large section of it and spread the points back out when zoomed into that area of the map. I've had a good look around and can't seem to find any way to do it, am I missing something or is there a workaround that would allow this?

Thanks for all of your help!

like image 424
Scott Avatar asked Feb 23 '23 18:02

Scott


1 Answers

There is a really good write-up of various options here: http://www.svennerberg.com/2009/01/handling-large-amounts-of-markers-in-google-maps/

It includes MarkerManager, Clusterer, ClusterMarkup, and MarkerClusterer.

like image 170
Sarah Haskins Avatar answered Mar 03 '23 13:03

Sarah Haskins