bing 地图 - 2 个图钉相同的坐标解决方法?
我有多个位置,通过图钉在特定的纬度/经度坐标上显示在 bing 地图上。存在这样的情况:两个图钉具有相同的坐标,并且两个图钉都堆叠在彼此的顶部。因此用户无法单击或看到下面的图钉。请提出解决方法或任何想法。
I have multiple locations that I show on the bing map via pushpins at specific lat/long co-ordinates. There's a situation where 2 pushpins have the same co-ordinates and both are stacked on top of each other. So the user cannot click or see the pushpin below. Please suggest workarounds or any ideas.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
一般方法是显示某种簇图标,让用户看到该图钉代表的位置不只一个,然后当用户单击/悬停在图钉上时显示一个消歧框,让他们选择要访问的位置。想要选择。
这与您在地图上对图钉数据进行聚类的方法相同 - 将多个不同的数据项聚合到单个聚类单元中。
The general approach is to display some sort of cluster icon to let the user see that there is more than one location represented by that pushpin, and then present a disambiguation box when the user clicks/hovers on the pushpin to let them choose which location they want to select.
This is the same approach as you would use to cluster pushpin data on the map - aggregating several distinct items of data into a single cluster unit.