Merge pull request #3488 from Leaflet/persist-marker-dragging
Persist marker dragging when removing/readding it.
This commit is contained in:
commit
33753fe3d6
@ -33,6 +33,7 @@ L.Marker = L.Layer.extend({
|
||||
|
||||
onRemove: function () {
|
||||
if (this.dragging && this.dragging.enabled()) {
|
||||
this.options.draggable = true;
|
||||
this.dragging.removeHooks();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user