Add popups to unclustered layer points #1636
Unanswered
JacobAstonUD
asked this question in
Q&A
Replies: 1 comment
-
you got aney solutions ? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to add clickable event so that when a user clicks on a single point on the unclustered layer (4px in radius) a single popup opens in relation to that point.
const [showPopup, togglePopup] = useState(false)
If showPopup evaluates to true my MapPopup function is then called that has the Popup logic within there that maps over the array of locations I am passing to the parent function.
If anyone could help that would be amazing!
Thanks
Beta Was this translation helpful? Give feedback.
All reactions