Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating draggable property #150

Open
piyushD2 opened this issue May 14, 2020 · 2 comments
Open

Updating draggable property #150

piyushD2 opened this issue May 14, 2020 · 2 comments

Comments

@piyushD2
Copy link

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
Copy link
Author

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.

@novalu
Copy link

novalu commented Jun 1, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants