如何将传单 map 平移到拖动标记时的点?
startMarker.on('dragged', function(event) {});
最佳答案
使用这个
startMarker.on('dragend', function(event) {
map.setView(new L.LatLng( event.target.getLatLng().lat,event.target.getLatLng().lng),zoom);
});
关于javascript - 如何平移传单 map ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17696921/