Skip to content

[google_maps_flutter] Document that clearTileCache() may cause flickering #189678

Closed
flutter/packages
#12315

Description

@ziyad-o

Content removed by the author for privacy.

Activity

  1. stuartmorgan-g commented on Jul 19, 2026

    @stuartmorgan-g
    Contributor

    The blanking appears to originate in the native Android Maps SDK [...] From the plugin's Dart API there is currently no flicker-free way to invalidate a tile overlay on Android at all

    It's not clear to me why you've added "from the plugin's Dart API" here if the behavior you are describing is from the native SDK. Can you provide code that achieves the behavior you want when using the SDK directly?

    Suggested resolutions, in order of preference:

    1. Make the Android implementation match iOS, e.g. by internally double-buffering: create a replacement native overlay with the same provider, and remove the old one once the new one has rendered.

    Requests for changes in behavior of the native SDK need to be filed against the SDK, rather than against the Flutter wrapper.

    1. At minimum, document the platform difference on GoogleMapController.clearTileCache

    Based on the description here, it seems like this is the only part of the request that can be done in the plugin, so retitling. If there is a call that has the behavior you want, please provide that information and we can adjust the scope.

  2. added
    p: mapsGoogle Maps plugin
    packageflutter/packages repository. See also p: labels.
    P2Important issues not at the top of the work list
    on Jul 19, 2026
  3. changed the title [-][google_maps_flutter] TileOverlay.clearTileCache() blanks all visible tiles on Android, while iOS swaps them in place seamlessly[/-] [+][google_maps_flutter] Document that clearTileCache() may cause flickering[/+] on Jul 19, 2026
  4. changed the title [-][google_maps_flutter] Document that clearTileCache() may cause flickering[/-] [+][Removed for privacy][/+] on Sep 10, 2026
  5. added a commit that references this issue on Sep 16, 2026
    8d53c8e
  6. changed the title [-][Removed for privacy][/-] [+][google_maps_flutter] Document that clearTileCache() may cause flickering[/+] on Sep 16, 2026
  7. stuartmorgan-g commented on Sep 16, 2026

    @stuartmorgan-g
    Contributor

    General descriptions of issues are not PII; please don't destroy them and make our issue management more difficult.

  8. ziyad-o commented on Sep 16, 2026

    @ziyad-o
    Author

    @stuartmorgan-g sorry i used an ai to remove personal info and it removed all the posts

  9. github-actions commented on Sep 30, 2026

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  10. locked as resolved and limited conversation to collaborators on Sep 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listp: mapsGoogle Maps pluginpackageflutter/packages repository. See also p: labels.team-ecosystemOwned by Ecosystem teamtriaged-ecosystemTriaged by Ecosystem team

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions