ionic-team / ionic-team/capacitor-google-maps

Programmatically Trigger Marker Click or Show Info Window

Open
#86 0 comments 0 reactions 0 assignees View on GitHub
triage
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.