Hide hover popups for some props #242
Unanswered
dabreegster
asked this question in
Q&A
Replies: 1 comment 3 replies
-
|
This feels like something that would be best done with an extra prop on the popup component. Something like <Popup canOpen={(features) => !!features[0]?.properties?.description}> |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have something like this:
When I hover over a feature without that property, I of course get an empty popup:

What approaches are there to not show the popup, based on the feature being hovered on? Digging into the code, I think the answer will probably be to set
openOn="manual"and then replicate some of the hover behavior manually:Just curious if anyone's done anything like this before and has anything to share. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions