在传单地图上完全相同的位置上有多个标记 [英] Multiple markers on the exact same position on a Leaflet map
问题描述
我们使用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屋!