Add Popup to a custom react-map-gl map #2445
Unanswered
fabripetrelli
asked this question in
Q&A
Replies: 0 comments
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.
-
Hello everyone, I'm having trouble adding a Popup to what I'll call a "custom instance" of react-map-gl. This "custom instance" is a component exported from a component library I created using Storybook. It's essentially just a map with some predefined style and mapStyle configuration.
Whenever I try to add this map to another project and use a Popup, I get the following error:
I’ve looked into the code in popup.ts at line 42 and thought that since the Popup is in a different instance of react-map-gl, they might not share the same context. Am I correct in thinking this?
Has anyone experienced similar issues when integrating a Popup into a custom instance of react-map-gl?
I’d appreciate any suggestions or insights on how to resolve this issue!
Beta Was this translation helpful? Give feedback.
All reactions