Google地图MarkerClusters无法在某些位置使用 [英] Google Maps MarkerClusters not working for some locations

查看:229
本文介绍了Google地图MarkerClusters无法在某些位置使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有大量位置/标记,因此我使用的是MarkerClusters。除了一个集群外,这个工作很好。群集显示有3个位置,但如果您点击它,则不会显示任何位置。我似乎无法找到调试此问题的起点,因为我没有看到任何错误或警告。有没有人遇到过这个或有任何建议?

示例:点击檀香山附近3个位置的群集,查看我的意思。



我使用Angular Google Maps指令( github

请到我的代码: https://gist.github.com/fourq/bb30d2335ec2ab40170a maps / issues / 448rel =nofollow> https://github.com/angular-ui/angular-google-maps/issues/448



<按照这里的规定玩GridSize。



http://google-maps-utility-library-v3.googlecode.com/svn/tags/markerclustererplus/2.1.1 /docs/reference.html#MarkerClustererOptions



我猜这些数据太靠近了,或者你有欺骗。


I have a large number of locations/markers, so I'm using MarkerClusters. This is working great except for the one cluster. The cluster shows that there are 3 locations but if you click on it, it doesn't show any locations. I cannot seem to find a starting point to debug this issue since I don't see any errors or warnings. Has anyone run into this before or have any advice?

Example: Click the cluster with 3 locations near Honolulu to see what I mean. link

I'm using the Angular Google Maps directive (github)

Gist to my code: https://gist.github.com/fourq/bb30d2335ec2ab40170a

解决方案

Please see here: https://github.com/angular-ui/angular-google-maps/issues/448

and play with gridSize as stated in here.

http://google-maps-utility-library-v3.googlecode.com/svn/tags/markerclustererplus/2.1.1/docs/reference.html#MarkerClustererOptions

My guess the data is way too close together or you have dupes.

这篇关于Google地图MarkerClusters无法在某些位置使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆