diff --git a/packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/method_channel/method_channel_google_maps_flutter.dart b/packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/method_channel/method_channel_google_maps_flutter.dart index 1dcf312fb6cf..88888e0c75e9 100644 --- a/packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/method_channel/method_channel_google_maps_flutter.dart +++ b/packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/method_channel/method_channel_google_maps_flutter.dart @@ -122,6 +122,11 @@ class MethodChannelGoogleMapsFlutter extends GoogleMapsFlutterPlatform { return _events(mapId).whereType(); } + @override + Stream onHeatmapTap({required int mapId}) { + return _events(mapId).whereType(); + } + @override Stream onInfoWindowTap({required int mapId}) { return _events(mapId).whereType(); @@ -197,6 +202,13 @@ class MethodChannelGoogleMapsFlutter extends GoogleMapsFlutterPlatform { LatLng.fromJson(arguments['position'])!, MarkerId(arguments['markerId']! as String), )); + + case 'heatmap#onTap': + final Map arguments = _getArgumentDictionary(call); + _mapEventStreamController.add(HeatmapTapEvent( + mapId, + HeatmapId(arguments['heatmapId']! as String), + )); case 'marker#onDrag': final Map arguments = _getArgumentDictionary(call); _mapEventStreamController.add(MarkerDragEvent(