How to replicate marker position on map loop Leaflet JS

心已入冬 提交于 2019-11-30 21:53:21

Use 'worldCopyJump': true in your map options.

With this option enabled, the map tracks when you pan to another "copy" of the world and seamlessly jumps to the original one so that all overlays like markers and vector layers are still visible.

http://leafletjs.com/reference.html#map-worldcopyjump

Working example on Plunker: http://plnkr.co/edit/mWKc4M?p=preview

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!