This repository has been archived by the owner on Mar 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 229
Show label on click. #134
Comments
I'm struggling with this same issue right now. I want the labels to appear on mouseover AND I want the labels to become static on click. I'll let you know if I find a good solution to this. |
@that1guy, I got this working. First, I think it's important to note that you and I are both using AngularJS, as evidenced by your use of the It's a little counter-intuitive, but when I initialize the markers, I omit the label. Then, I create/destroy the label properties dynamically on events, like this:
When I need to remove the label, I just delete the property:
Hope this helps you! |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
mouseOver is working, but I'm aiming to keep the label viewable and static when the user clicks on the icon.
Also, I assume once someone answers this that I can hide the label after the user "blurs" from the icon?
The text was updated successfully, but these errors were encountered: