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

Need dynamic options #72

Open
Rajavelu opened this issue Feb 19, 2018 · 1 comment
Open

Need dynamic options #72

Rajavelu opened this issue Feb 19, 2018 · 1 comment

Comments

@Rajavelu
Copy link

Its good if support dynamic options like fillcolor / editable will change dynamically.
#feature_request

@fc
Copy link

fc commented Sep 17, 2018

At the moment, it looks like this can be sometimes be achieved by removing and re-adding the circle, e.g.,

circle.remove();
circle.options.editable = false;
circle._updateCircle(); // <-- this re-initializes internal values of the circle
circle.addTo(map);

I can't say for certain if the above is always a safe approach. It is likely safer to just re-create the circle entirely instead of doing the above (e.g., create a copyCircle function).

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