Merge pull request #3488 from Leaflet/persist-marker-dragging

Persist marker dragging when removing/readding it.
This commit is contained in:
Vladimir Agafonkin 2015-05-25 12:02:01 +03:00
commit 33753fe3d6

View File

@ -33,6 +33,7 @@ L.Marker = L.Layer.extend({
onRemove: function () {
if (this.dragging && this.dragging.enabled()) {
this.options.draggable = true;
this.dragging.removeHooks();
}