如何使用Bing Maps在相同的地理位置上防止图钉重叠? [英] How to prevent overlapping pushpins at the same geolocation with Bing Maps?

查看:85
本文介绍了如何使用Bing Maps在相同的地理位置上防止图钉重叠?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果您在同一地理位置的伦敦"上有2个图钉,API中是否有任何东西可以将它们分开以使它们都可见?

If you have 2 pushpins on 'London' at the same geolocation, is there anything in the API to move them apart so they are both visible?

我只能在他们的旧地图点API上找到具有PreventIconCollisions的文档,这是我想要的,但是在新API中看不到对此的任何引用.

I can only find documentation on their old map points API which had PreventIconCollisions, this is what I want but can't see any reference to this in the new API.

我正在使用JavaScript API.

I am using the JavaScript API.

推荐答案

我知道这个问题确实很老,但是如果有人正在寻找类似的东西(将销钉聚集),那么这是一个很好的开始:

I know this question is really old, but if someone is looking for something similar (clustering the pins) here is a good start: http://rtsinani.github.io/PinClusterer/

这篇关于如何使用Bing Maps在相同的地理位置上防止图钉重叠?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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