小编Kaz*_*eer的帖子

Leaflet.Draw edit and delete button not working

I'm using Leaflet Draw to let users draw a polyline in a map in order to measure sections. First step is to use Leaflet.Draw to let users draw the line. Leaflet.Draw includes a delete and edit button. These buttons are, however not working.

I've (re)used working code from other projects to create the draw control and pass it a FeatureGroup and editable layers.

// My draw Toolbar
var drawnItems = new L.FeatureGroup()
map.addLayer(drawnItems)
var drawControl = new L.Control.Draw({
  draw:{polygon: false, …
Run Code Online (Sandbox Code Playgroud)

javascript django leaflet leaflet.draw

3
推荐指数
1
解决办法
5761
查看次数

标签 统计

django ×1

javascript ×1

leaflet ×1

leaflet.draw ×1