标记聚类器,单击时不放大
我使用具有所有默认设置的标记聚类器,在地图上也仅使用默认设置。标记簇显示良好,但与文档中的示例不同,单击簇时地图不会放大。地图仅以点击集群为中心,但不缩放!
以前有其他人遇到过这个问题吗?
I'm using Marker Clusterer with all the default settings, on a map also using just default settings. The marker clusters display fine, but unlike the example in the documentation, the map does not zoom in when a cluster is clicked. The map only centers on the click on cluster but does not zoom!
Has anyone else had this problem before?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Dreendle:默认的
zoomOnClick
设置为true
,因此单击集群应该放大。您确定没有将zoomOnClick
设置为 false?没有脚本错误吗?
Dreendle: the default
zoomOnClick
setting istrue
so that clicking a Cluster should zoom in. Are you sure you have not setzoomOnClick
to false?There are no script errors?
这个设置是正确的,谢谢 davidhund。我用不同的版本替换了代码,问题就消失了。
That setting was true thank you davidhund. I replaced the code with a different version, and the problem has vanished.