Skip to content

Programmatically Trigger Marker Click or Show Info Window #86

@IbrahimElkhatib

Description

@IbrahimElkhatib

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions