Skip to content

Emulated retina mode displays incorrect tiles #2042

@stefangaller

Description

@stefangaller

What is the bug?

After upgrading from version 7.0.2 to 8.0.0, flutter_map is trying to fetch the wrong coordinates.

Flutter doctor:

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.29.0, on macOS 15.3.1 24D70 darwin-arm64, locale en-AT)
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 16.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2024.2)
[✓] IntelliJ IDEA Ultimate Edition (version 2024.3.3)
[✓] VS Code (version 1.91.0)
[✓] Connected device (5 available)
[✓] Network resources

How can we reproduce it?

FlutterMap(
  children: [
      TileLayer(
        retinaMode: true,
        urlTemplate: 'https://a.tile.opentopomap.org/{z}/{x}/{y}.png',
      )
  ],
),

Output Version 7.0.2
Image

Output Version 8.0.0
Image

Zoomed out it now looks like this:

Image

Do you have a potential solution?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions