Hi again,
I am trying to store additional data for each annotation, which can then be retrieved 1) onClick 2) onHover
1)
For onClick, my attempt is here: https://codepen.io/himmxt-the-bold/pen/JjRMJxY
I'd like:
"LOREM IPSUM".foo to return "asdf"
and "DOLOR".foo to return "qwer"
I think I can solve this by creating several labels[] entries, but I wanted to check if there is another way.
2)
For onHover, I am less certain how to proceed, but I'd like to retrieve the value of .foo on hover.
(Also if possible, I'd love to turn the cursor from default to a "pointer" on hover, so that users know that the annotation is clickable).
Thank you for your time,
Himmat