且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何一次在传单标记中打开多个弹出窗口

更新时间:2022-11-02 07:39:28

2017年12月更新 传单弹出选项已扩展为包括{ autoClose: false }具有所需的效果:

Update Dec 2017 Leaflet popup options have been extended to include { autoClose: false } which has the required effect :

 var my_marker = L.marker([my_lat, my_lng], {icon: my_icon})
                  .addTo(map)
                  .bindPopup('My Popup HTML', {closeOnClick: false, autoClose: false});