diff --git a/packages/google_maps_flutter/google_maps_flutter/CHANGELOG.md b/packages/google_maps_flutter/google_maps_flutter/CHANGELOG.md index 056b3ffd66ba..40ca9093a6e6 100644 --- a/packages/google_maps_flutter/google_maps_flutter/CHANGELOG.md +++ b/packages/google_maps_flutter/google_maps_flutter/CHANGELOG.md @@ -1,3 +1,7 @@ +## 2.18.1 + +* Clarifies that clearing a tile cache may cause flickering on some platforms. + ## 2.18.0 * Adds support for mapTypeControlEnabled, fullscreenControlEnabled, and streetViewControlEnabled on web. diff --git a/packages/google_maps_flutter/google_maps_flutter/lib/src/controller.dart b/packages/google_maps_flutter/google_maps_flutter/lib/src/controller.dart index 32ed8a26671f..5fe33cccc93f 100644 --- a/packages/google_maps_flutter/google_maps_flutter/lib/src/controller.dart +++ b/packages/google_maps_flutter/google_maps_flutter/lib/src/controller.dart @@ -220,10 +220,11 @@ class GoogleMapController { /// Clears the tile cache so that all tiles will be requested again from the /// [TileProvider]. /// - /// The current tiles from this tile overlay will also be - /// cleared from the map after calling this method. The API maintains a small - /// in-memory cache of tiles. If you want to cache tiles for longer, you - /// should implement an on-disk cache. + /// Depending on the platform implementation, the current tiles may be + /// cleared from the map before replacement tiles are available, causing the + /// tile overlay to flicker. The API maintains a small in-memory cache of + /// tiles. If you want to cache tiles for longer, you should implement an + /// on-disk cache. Future clearTileCache(TileOverlayId tileOverlayId) async { _checkWidgetMountedOrThrow(); return GoogleMapsFlutterPlatform.instance.clearTileCache(tileOverlayId, mapId: mapId); diff --git a/packages/google_maps_flutter/google_maps_flutter/pubspec.yaml b/packages/google_maps_flutter/google_maps_flutter/pubspec.yaml index d7737ac9e945..c8343645d0fb 100644 --- a/packages/google_maps_flutter/google_maps_flutter/pubspec.yaml +++ b/packages/google_maps_flutter/google_maps_flutter/pubspec.yaml @@ -2,7 +2,7 @@ name: google_maps_flutter description: A Flutter plugin for integrating Google Maps in iOS and Android applications. repository: https://github.com/flutter/packages/tree/main/packages/google_maps_flutter/google_maps_flutter issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+maps%22 -version: 2.18.0 +version: 2.18.1 environment: sdk: ^3.10.0