Skip to content

Flicker grid between map tiles on zoom #1156

@tobias-ullerich-init

Description

@tobias-ullerich-init

I have recently experienced a flicker grid between the map tiles when zooming on a map with rotation disabled. This bug seems to be depended on the Flutter SDK version and present since Flutter SDK 2.8.x. I tested this with the 0.14.0 version of the library, as well as the master branch. Running the application on Flutter 2.5.x will not lead to this bug. The bug will only appear with disabled map rotation interaction.
The attached video shows the graphical bug more precise. There is a line from north to south near London and a line from east to west at the height of the Label "United Kingdom".

RPReplay_Final1644324774.mp4

To reproduce the bug, simply use this code and run the application with the Flutter SDK 2.8.x or 2.10.x:

FlutterMap(
  options: MapOptions(
    center: LatLng(51.5, -0.09),
    zoom: 5.0,
    interactiveFlags: InteractiveFlag.drag |
        InteractiveFlag.flingAnimation |
        InteractiveFlag.pinchMove |
        InteractiveFlag.pinchZoom |
        InteractiveFlag.doubleTapZoom,
  ),
  layers: [
    TileLayerOptions(
      urlTemplate:
          'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
      subdomains: ['a', 'b', 'c'],
      // For example purposes. It is recommended to use
      // TileProvider with a caching and retry strategy, like
      // NetworkTileProvider or CachedNetworkTileProvider
      tileProvider: NonCachingNetworkTileProvider(),
    ),
    MarkerLayerOptions(markers: markers)
  ],
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis issue reports broken functionality or another error

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions