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
Toggle Clickable #2669
Comments
You could simply add/remove your click handler to toggle the clickable state.
|
That is a partial solution and what I'm doing right now. The problem is that a clickable marker remains "clickable" even if it does not have any events attached to it. It does not become part of the scenery and still displays on hover cursor changes implying click-ability. Yes there are solutions to this, but removing and adding events and forcibly changing cursor states are heavy handed solutions to what could be a simple api call. |
This is a good point. I think we should rename |
@eborden totally agree with you. It's totally a pain (wasted a good hour trying to figure out the issue - |
is there anyone working on this? I think I can refactor this part ;) |
Closed in favor of #5442 |
There is no ability to toggle the clickable state of a marker/layer. You can toggle dragging on/off, but clickable has no such feature.
The text was updated successfully, but these errors were encountered: