-
Notifications
You must be signed in to change notification settings - Fork 632
Closed
Description
Toggling marker.draggable between true/false doesn't seem to work.
I debugged through and the offending line seems to be:
// Update the draggable property
if (markerData.draggable !== true && oldMarkerData.draggable === true && marker.dragging === true) {
marker.dragging.disable();
}
Specifically, marker.dragging === true will always return false since dragging is an object.
I changed this to (marker.dragging !== undefined && marker.dragging !== null) and it seemed to work.
If this looks right, let me know and I'll submit a PR.
Metadata
Metadata
Assignees
Labels
No labels