在传单地图上完全相同的位置上有多个标记 [英] Multiple markers on the exact same position on a Leaflet map

查看:94
本文介绍了在传单地图上完全相同的位置上有多个标记的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们使用leafletJS来显示带有约100个标记的地图.其中一些标记位于完全相同的位置. Marker2在Marker1上方,因此Marker1不可见.有没有一种旋转标记的方式,您可以看到有一个以上的标记?

We use leafletJS to show maps with round about 100 markers. Some of these markers are located on exact the same position. Marker2 is above Marker1 so Marker1 isn't visible. Is there a way to rotate Markers in a way that you can see there are more then one marker?

推荐答案

也许您应该看看 https: //github.com/Leaflet/Leaflet.markercluster 插件 此处演示- http://leaflet.github.io/Leaflet.markercluster/example/marker-clustering-realworld.388.html

may be you should look at https://github.com/Leaflet/Leaflet.markercluster plugin here demo - http://leaflet.github.io/Leaflet.markercluster/example/marker-clustering-realworld.388.html

这篇关于在传单地图上完全相同的位置上有多个标记的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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