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
AdvancedMarkerElement: map invalid: not an instance of MapsApiMap
I'm not sure what's causing this issue to occur, but we keep running into it. There are a few things to note about our usage:
We're using the AdvancedMarker to create a TooltipMarker component
Our app renders a list of pages, each with their own Map, each receiving a unique location
At first I thought the error was perhaps being caused by some mounting/unmounting behavior that happens when switching between pages, or by how we implemented TooltipMarker, but I'm honestly not sure.
Getting the error to show up consistently is... not easy. The codesandbox linked above shows how the app is set up at a basic level, i.e. multiple pages rendering their own Map and a basic TooltipMarker implementation using AdvancedMarker.
Environment
Library version: 1.1.1
Google maps version: weekly
Browser and Version: Chrome 128
OS: Mac
Logs
No response
The text was updated successfully, but these errors were encountered:
Description
We keep getting this error:
I'm not sure what's causing this issue to occur, but we keep running into it. There are a few things to note about our usage:
AdvancedMarker
to create aTooltipMarker
componentMap
, each receiving a unique locationAt first I thought the error was perhaps being caused by some mounting/unmounting behavior that happens when switching between pages, or by how we implemented
TooltipMarker
, but I'm honestly not sure.Steps to Reproduce
https://codesandbox.io/p/sandbox/advancedmarker-example-cyycp9
Getting the error to show up consistently is... not easy. The codesandbox linked above shows how the app is set up at a basic level, i.e. multiple pages rendering their own
Map
and a basicTooltipMarker
implementation usingAdvancedMarker
.Environment
Logs
No response
The text was updated successfully, but these errors were encountered: