Topic: Markers should have a way to unset Draggable

Currently you can call SetDraggable from OnlineMapsMarkerBase and that will enable the drag feature; however, there is no way to make a marker not draggable other than to delete it and create a new one in its place.

I suggest replacing the current SetDraggable method with the following which will maintain compatibility.

    public bool IsDraggable {
        get; private set;
    }

    public void SetDraggable(bool value = true)
    {
        if (IsDraggable == value) {
            return;
        }
        IsDraggable = value;

        if (value) {
            OnPress += OnMarkerPress;
        } else {
            OnPress -= OnMarkerPress;
        }
    }

Re: Markers should have a way to unset Draggable

Hello.

Thank you for the good suggestion.
The next version of Online Maps will contain this.

Kind Regards,
Infinity Code Team.

Do not know the best way to thank the developer? Rate the asset in Asset Store!