From ff0a450f548c5f6b85aa5a7e66d40d36ae9f5d91 Mon Sep 17 00:00:00 2001 From: Luis Rogelio Reyes Date: Mon, 22 Jan 2024 14:40:32 -0400 Subject: [PATCH] fixes to web controller and test file --- packages/google_maps_flutter/google_maps_flutter/pubspec.yaml | 2 ++ .../example/integration_test/google_maps_plugin_test.dart | 2 +- .../google_maps_flutter_web/lib/src/google_maps_controller.dart | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/google_maps_flutter/google_maps_flutter/pubspec.yaml b/packages/google_maps_flutter/google_maps_flutter/pubspec.yaml index ceabf07e5088..a1e8e47dc979 100644 --- a/packages/google_maps_flutter/google_maps_flutter/pubspec.yaml +++ b/packages/google_maps_flutter/google_maps_flutter/pubspec.yaml @@ -49,3 +49,5 @@ dependency_overrides: path: ../../google_maps_flutter/google_maps_flutter_ios google_maps_flutter_platform_interface: path: ../../google_maps_flutter/google_maps_flutter_platform_interface + google_maps_flutter_web: + path: ../../google_maps_flutter/google_maps_flutter_web diff --git a/packages/google_maps_flutter/google_maps_flutter_web/example/integration_test/google_maps_plugin_test.dart b/packages/google_maps_flutter/google_maps_flutter_web/example/integration_test/google_maps_plugin_test.dart index 70b1200b69bd..abcb3a178a3f 100644 --- a/packages/google_maps_flutter/google_maps_flutter_web/example/integration_test/google_maps_plugin_test.dart +++ b/packages/google_maps_flutter/google_maps_flutter_web/example/integration_test/google_maps_plugin_test.dart @@ -271,7 +271,7 @@ void main() { await plugin.updateHeatmaps(expectedUpdates, mapId: mapId); verify(controller.updateHeatmaps(expectedUpdates)); - )}; + }); // Tile Overlays testWidgets('updateTileOverlays', (WidgetTester tester) async { final Set expectedOverlays = { diff --git a/packages/google_maps_flutter/google_maps_flutter_web/lib/src/google_maps_controller.dart b/packages/google_maps_flutter/google_maps_flutter_web/lib/src/google_maps_controller.dart index bddf604c273f..197214d328be 100644 --- a/packages/google_maps_flutter/google_maps_flutter_web/lib/src/google_maps_controller.dart +++ b/packages/google_maps_flutter/google_maps_flutter_web/lib/src/google_maps_controller.dart @@ -274,7 +274,7 @@ class GoogleMapController { _markersController!.addMarkers(_markers); _circlesController!.addCircles(_circles); - _heatmapsController!.addHeatmaps(heatmaps); + _heatmapsController!.addHeatmaps(_heatmaps); _polygonsController!.addPolygons(_polygons); _polylinesController!.addPolylines(_polylines); _tileOverlaysController!.addTileOverlays(_tileOverlays);