Leaflet/Mapbox 滚动图集后标记不再重复
Leaflet/Mapbox Markers Don't Repeat After Scrolling Around the Atlas
来自 Mapbox docs 的屏幕截图:
似乎 Mapbox 不会在同一张地图上多次渲染给定的坐标,即使地图被缩小到足以查看相同的纬度和经度对两次。有没有解决的办法?
使用 L.mapbox.map
(L.map
) 的 worldCopyJump
选项:
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.
Plunker 上的工作示例:http://plnkr.co/edit/cbDNH6Rs5SbBKGY7LQGe?p=preview
来自 Mapbox docs 的屏幕截图:
似乎 Mapbox 不会在同一张地图上多次渲染给定的坐标,即使地图被缩小到足以查看相同的纬度和经度对两次。有没有解决的办法?
使用 L.mapbox.map
(L.map
) 的 worldCopyJump
选项:
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.
Plunker 上的工作示例:http://plnkr.co/edit/cbDNH6Rs5SbBKGY7LQGe?p=preview