更新时间: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});