You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
The text was updated successfully, but these errors were encountered:
fabripetrelli
changed the title
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.
Add Popup to a custom react-map-gl map
Dec 4, 2024
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!
Originally posted by @fabripetrelli in #2445
The text was updated successfully, but these errors were encountered: