Open zning opened 5 years ago
Hey, I have a similar issue to your first issue and this is what I've found out:
Since the content is being rendered in the original window, the global window that's being used by third party libraries is the original window, not the pop up window. Unfortunately, I don't have a fix or workaround besides using libraries where you can pass the window in through a prop.
Hey, I have a similar issue to your first issue and this is what I've found out:
Since the content is being rendered in the original window, the global window that's being used by third party libraries is the original window, not the pop up window. Unfortunately, I don't have a fix or workaround besides using libraries where you can pass the window in through a prop.
Thanks for your reply. Tried 5 different google map libraries and no one perfectly works...
Made a little 'hack' that let me run mapbox and communicate with it in a seperat window using react-routing and broadcastChannel API.
See: https://github.com/Totalbug92/React-New-Window-with-Mapbox-GL
@Totalbug92 did you see issue https://github.com/rmariuzzo/react-new-window/issues/34? I think fixing that that would solve this issue with Google Maps, and any other issue related to the window reference.
I'm wondering if this issue can be addressed using the new window instance returned by onOpen
callback.
I'm trying to pop up a new window and put Map inside it. But have some issues:
Any way to make anyone of them works? Thanks a lot