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
I want to use the React - Potals feature to map new windows
The main window is loaded well, but the window with the potals function occurs an error that
Invalid type: 'container' must be a String or HTMLElement.
I guess, when creating mapboxgl by new , the container is found in the document of the main window.
But the container is in the new window (the portals is used).
I've also tried out other maps, including 'MapGL' and 'StaticMap', but all have been error in the same place.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, please help
I want to use the
React - Potals
feature to map new windowsThe main window is loaded well, but the window with the
potals
function occurs an error thatInvalid type: 'container' must be a String or HTMLElement.
I guess, when creating
mapboxgl
by new , thecontainer
is found in the document of the main window.But the container is in the new window (the portals is used).
I've also tried out other maps, including 'MapGL' and 'StaticMap', but all have been error in the same place.
In the case of
deck.gl
, both of them work well.here test source..
Is there any way to deliver the handle of the new window, or what other way?
https://codesandbox.io/embed/map-load-test-r6wcx?fontsize=14&hidenavigation=1&theme=dark
Beta Was this translation helpful? Give feedback.
All reactions