Leaflet / Leaflet.draw

Vector drawing and editing plugin for Leaflet
https://leaflet.github.io/Leaflet.draw/docs/leaflet-draw-latest.html
MIT License
1.98k stars 994 forks source link

Editing CircleMarker no longer possible using Leaflet 1.x #714

Open v1r0x opened 7 years ago

v1r0x commented 7 years ago

How to reproduce

What behaviour I'm expecting and which behaviour I'm seeing

Expecting:

Seeing:

Minimal example reproducing the issue

Using jsfiddle.

Possible Reason

CircleMarker is no longer inheriting from Circle in leaflet 1.x. Instead Circleis now inheriting from CircleMarker. Editing options are added to Circle in Leaflet.draw and are thus not available for CircleMarker.

fpuga commented 7 years ago

We are also experimenting this issue and we implemented a patch. Check if this works for you (download the repo and build the dist with ./node_modules/.bin/jake build)