Open ahua52 opened 6 years ago
I have crashed into the same issue (Leaflet 1.2.0, Leaflet-draw 0.4.13 downloaded with npm)
As a meantime solution, I have patched a minified js in the following way and circle radius now follows the handler for me.
radius=this._map.distance(e,t),this._map.fire(L.Draw.Event.EDITRESIZE
radius=this._map.distance(e,t),this._shape.setRadius(radius),this._map.fire(L.Draw.Event.EDITRESIZE
If you are using leaflet.draw-src.js, I think you want to add this._shape.setRadius(radius)
to line 2743
If you are building from source, I think you want to add this._shape.setRadius(radius)
to line 33 of Edit.Circle.js
Hope this helps
I have the same issue with the leaflet-draw from npm. This solution works fine, thanks for it @kitzilla
How to reproduce
What behaviour I'm expecting and which behaviour I'm seeing
I'm expecting that dragging the marker should change the circle's size. What I see is that the editing markers are moving, but the circle size is not changed.
Minimal example reproducing the issue
Using plunker.