Leaflet之时间的添加和删除

Leaflet之时间的添加和删除

事件添加:

map.on('click', (res) => {
    console.log(res.latlng)   // 打印点击位置坐标
})

事件移除:

map.off('click')

钻研不易,转载请注明出处......

原文地址:https://www.cnblogs.com/s313139232/p/13050694.html