最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Combine map points - Google map API - Stack Overflow

programmeradmin0浏览0评论

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 bine all of the clustered points into one point that could be clicked for a list of all of the bined 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!

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 bine all of the clustered points into one point that could be clicked for a list of all of the bined 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!

Share Improve this question asked Jun 28, 2011 at 18:25 ScottScott 3,4955 gold badges30 silver badges49 bronze badges
Add a ment  | 

2 Answers 2

Reset to default 7

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

It includes MarkerManager, Clusterer, ClusterMarkup, and MarkerClusterer.

I use Clusterer and have been happy with it. Fairly simple and straight forward

http://google-maps-utility-library-v3.googlecode./svn/trunk/markerclusterer/docs/examples.html

Here is another option that I found afterwards that may be worth a look into as well

http://gmap3/examples/clustering.html

Update:

More recent Google documentation, some good information!

https://developers.google./maps/articles/toomanymarkers

发布评论

评论列表(0)

  1. 暂无评论