ionic-team / ionic-team/capacitor-google-maps
Programmatically Trigger Marker Click or Show Info Window
- Dominant language
- TypeScript
- Stars
- 32
- Forks
- 47
- PR merge metrics
- No merged PRs in 30d
Description
## Feature Request
### Plugin
capacitor-google-maps
### Description
Currently, the only way to show a marker's info window (title/snippet) is through user interaction (tap). I would like to request the ability to programmatically select a marker or trigger its "click" event, so that the marker's info window appears without requiring the user to tap it.
### Platform(s)
Android, iOS
### Preferred Solution
await map.selectMarker({
markerId: 'marker-id-123'
});
### Alternatives
await map.triggerMarkerClick({
markerId: 'marker-id-123'
});
### Additional Context
In my app, I display a list of locations and show them as markers on the map. I want to automatically highlight (or open the info window for) a specific marker based on logic like user's location, search results, or initial load — just like how Google Maps allows programmatically showing a marker popup.
Contributor guide
Assessment
This issue has not been assessed yet.