Questions tagged [leaflet-editable]

4 questions
4
votes
1 answer

Create a buffer on polyline - Leaflet

I am trying to achieve a buffer similar to Leaflet.buffer on my map. However, Leaflet.buffer seems to be only working with Leaflet.Draw. I am using Leaflet Editable to draw my layers and I have a polyline I would like to add a buffer to. However, I…
vtCode
  • 71
  • 7
1
vote
0 answers

Using react-leaflet together with leaflet-editable

Is there a way to correctly use these libs together? I have to use the ref attribute to get the instance of the circle and then use this this.circle.enableEdit(this.map); Also it crashes on the first rerender of the page. The cirle stays, but the…
HansElsen
  • 1,639
  • 5
  • 27
  • 47
1
vote
1 answer

leaflet context menu + marker dragging

I need to start dragging generated markers from context menu, now i got this: var markers = L.markerClusterGroup({ maxClusterRadius: 50 }); var datalen = data.length; for (var i = 0; i < datalen; i++) { var znakIcon =…
Catan
  • 11
  • 2
0
votes
1 answer

How to update rectangle bounds on vertex drag leaflet editable

I have been working with leaflet-editable.js to allow the editing of shapes. Specifically I am creating a rectangle that will maintain an aspect ratio of 4:3 when a corner is dragged. I have created a function to calculate the aspect ratio and…
DoT
  • 3
  • 1