You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 7707384
Browse filesBrowse the repository at this point in the historyBrowse files
✨ Add Point of Interest (POI) tap callback support
This implements the onPoiTap callback for Google Maps Flutter, addressing
issue #60695. The implementation follows the reviewer's architectural pattern
by providing a lightweight callback that includes:
- PointOfInterestId: wraps the Google Place ID (always available)
- LatLng position: geographic coordinates (always available)
- String? name: display name (available on Android/iOS, null on web)
Changes:
- platform_interface: Add PointOfInterest, PointOfInterestId, PoiTapEvent
- google_maps_flutter: Add onPoiTap callback to GoogleMap widget
- google_maps_flutter_android: Implement OnPoiClickListener
- google_maps_flutter_ios: Implement didTapPOIWithPlaceID delegate
This addresses the cost concerns for web implementations by not forcing
automatic Places API calls - developers can optionally fetch additional
details using the placeId.
Resolves: flutter/flutter#60695
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
Copy file name to clipboardExpand all lines: packages/google_maps_flutter/google_maps_flutter_android/android/src/main/java/io/flutter/plugins/googlemaps/GoogleMapController.java
Copy file name to clipboardExpand all lines: packages/google_maps_flutter/google_maps_flutter_android/android/src/main/java/io/flutter/plugins/googlemaps/GoogleMapListener.java
Copy file name to clipboardExpand all lines: packages/google_maps_flutter/google_maps_flutter_android/android/src/main/java/io/flutter/plugins/googlemaps/Messages.java
0 commit comments