Leaflet.Editable简单使用

薛宏壮
2023-12-01

https://github.com/Leaflet/Leaflet.Editable
http://leaflet.github.io/Leaflet.Editable/doc/api.html

注意<script>引入的顺序

<head>
<script src="Leaflet.Editable/src/Leaflet.Editable.js"></script>
</head>
function on_property_show_sel_line(){
    core_mymap.on('editable:drawing:start', function (e) {
});

    core_mymap.on('editable:drawing:commit', function (e) {
        core_mymap.removeLayer(e.layer)
});
    core_mymap.editTools.startPolyline()
}

 类似资料: