call disable, not removeHooks
This commit is contained in:
parent
95c73a3d77
commit
ed08a5b1dc
@ -42,7 +42,7 @@ L.Marker = L.Class.extend({
|
||||
|
||||
onRemove: function (map) {
|
||||
if (this.dragging) {
|
||||
this.dragging.removeHooks();
|
||||
this.dragging.disable();
|
||||
}
|
||||
|
||||
this._removeIcon();
|
||||
|
Loading…
Reference in New Issue
Block a user