Skip to content

Commit

Permalink
Update method_channel_google_maps_flutter.dart
Browse files Browse the repository at this point in the history
event has been updated
  • Loading branch information
Sofstica-Noor-Fatima authored Jun 13, 2024
1 parent 2d0dc09 commit 44c2b31
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,11 @@ class MethodChannelGoogleMapsFlutter extends GoogleMapsFlutterPlatform {
return _events(mapId).whereType<MarkerTapEvent>();
}

@override
Stream<HeatmapTapEvent> onHeatmapTap({required int mapId}) {
return _events(mapId).whereType<HeatmapTapEvent>();
}

@override
Stream<InfoWindowTapEvent> onInfoWindowTap({required int mapId}) {
return _events(mapId).whereType<InfoWindowTapEvent>();
Expand Down Expand Up @@ -197,6 +202,13 @@ class MethodChannelGoogleMapsFlutter extends GoogleMapsFlutterPlatform {
LatLng.fromJson(arguments['position'])!,
MarkerId(arguments['markerId']! as String),
));

case 'heatmap#onTap':
final Map<String, Object?> arguments = _getArgumentDictionary(call);
_mapEventStreamController.add(HeatmapTapEvent(
mapId,
HeatmapId(arguments['heatmapId']! as String),
));
case 'marker#onDrag':
final Map<String, Object?> arguments = _getArgumentDictionary(call);
_mapEventStreamController.add(MarkerDragEvent(
Expand Down

0 comments on commit 44c2b31

Please sign in to comment.