-
Notifications
You must be signed in to change notification settings - Fork 173
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Description
Using the onMouseEnter with a AdvancedMarker is only working when the same AdvancedMarker has a onClick property set.
If I'm using the standar Pin, it works just fine.
Steps to Reproduce
<APIProvider
apiKey={import.meta.env.VITE_API_GOOGLE_MAPS_API_KEY}
region="BR"
language="pt-BR"
>
<Map
defaultCenter={{
lat: -15.4,
lng: -47.4,
}}
defaultZoom={10}
id="plots-list"
mapId={import.meta.env.VITE_API_GOOGLE_MAPS_MAP_ID}
>
{plotLocations.map((plot) => {
return <AdvancedMarker position={plot.location} key={plot.id} onMouseEnter={() => console.log('test')}
onClick={() => {}}
>
<div>dummy component</div>
</AdvancedMarker>
})}
</Map>
</APIProvider>
Environment
- Library version: 1.2.0
- Google maps version: weekly
- Browser and Version: Chrome 128.0.6613.138 (Official Build) (64-bit)
- OS: Windows 11
Logs
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working