Skip to content

[google_maps_flutter] Add onPointOfInterestTap callback#11872

Draft
tenninebt wants to merge 1 commit into
flutter:mainfrom
tenninebt:google-maps-on-poi-tap
Draft

[google_maps_flutter] Add onPointOfInterestTap callback#11872
tenninebt wants to merge 1 commit into
flutter:mainfrom
tenninebt:google-maps-on-poi-tap

Conversation

@tenninebt

@tenninebt tenninebt commented Jun 8, 2026

Copy link
Copy Markdown

Adds GoogleMap.onPointOfInterestTap, a callback that fires when the user taps a built-in map point of interest. The callback receives a PointOfInterestId containing the place ID only, matching maintainer feedback on #4052 and #10963.

The change is wired through the federated plugin stack: platform_interface (type + event stream), Android (OnPoiClickListener), iOS including sdk9/sdk10/shared (didTapPOIWithPlaceID), web (IconMouseEvent.placeId on map click), and the app-facing google_maps_flutter package. Tests cover Dart unit tests, Android Robolectric, iOS native, and web integration tests in the web example.

Fixes flutter/flutter#60695

Pre-Review Checklist

Footnotes

  1. Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling. 2

Expose a place-ID-only POI tap stream across the federated plugin stack
(Android, iOS, web) so apps can react when users tap built-in map POIs.

Fixes flutter/flutter#60695
@tenninebt tenninebt force-pushed the google-maps-on-poi-tap branch from 36fa34c to 157aaa5 Compare June 8, 2026 22:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[google_maps_flutter] Add callback for click on google poi's on the map

1 participant