jquery-locationpicker-plugin icon indicating copy to clipboard operation
jquery-locationpicker-plugin copied to clipboard

Updating draggable property

Open piyushD2 opened this issue 4 years ago • 2 comments

I want to allow map and marker draggable property true or false based on some dynamic conditions. But right now, with first initialization of locationpicker on an element, if I set draggable property as false, it doesn't change ever after that, even when I try to reinitialise locationpicker on that element. Can you please help me with this?

piyushD2 avatar May 14 '20 13:05 piyushD2

I found a way to fix my problem. Since locationpicker was being applied on a simple div, I would delete that el from dom using jquery, and then create an el with same class and attributes at same location before performing reinitialisation on locationpicker on it.

I hope this idea helps someone. But still, it will be good to have a solution from the team here.

piyushD2 avatar May 15 '20 07:05 piyushD2

Same issue here but didn't found better solution, so I'm removing div and completely reinitializing location picker just like you. Thanks.

novalu avatar Jun 01 '20 09:06 novalu