Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Map flickers when using tileBuilder on Impeller #2002

Open
YarosMallorca opened this issue Dec 18, 2024 · 5 comments
Open

[BUG] Map flickers when using tileBuilder on Impeller #2002

YarosMallorca opened this issue Dec 18, 2024 · 5 comments
Labels
bug This issue reports broken functionality or another error needs triage This new bug report needs reproducing and prioritizing

Comments

@YarosMallorca
Copy link

YarosMallorca commented Dec 18, 2024

What is the bug?

When using the tileBuilder in a TileLayer and Impeller renderer (the default on Android & iOS as of Flutter 3.27), line artifacts appear when zooming out or moving the map.

Impeller without tileBuilder (normal behavior):

normal.mp4

Impeller with tileBuilder set to darkModeTileBuilder (artifacts):

artifacts.mp4

How can we reproduce it?

Put a Flutter Map with a TileLayer widget, and apply a TileBuilder, like the darkModeTileBuilder.
Then try to move and zoom, navigate around the map.

Do you have a potential solution?

I stuck to disabling the Impeller renderer in AndroidManifest.xml and Info.plist for now.

Platforms

Tested on Pixel 6 and iOS Emulator

Severity

Obtrusive: Prevents normal functioning but causes no errors in the console

@YarosMallorca YarosMallorca added bug This issue reports broken functionality or another error needs triage This new bug report needs reproducing and prioritizing labels Dec 18, 2024
@ReinisSprogis
Copy link
Contributor

I have not looked into source code, but I had similar issue when trying to implement CustomPainter to render tiles. It was Anti-Aliasing causing this. Perhaps disabling it wherever it color is set, will remove ghost lines.

@mootw
Copy link
Contributor

mootw commented Dec 23, 2024

does this issue exist in flutter 3.24.5?

@YarosMallorca
Copy link
Author

@mootw The issue is reproducible on the latest stable - Flutter V3.27.1

@mootw
Copy link
Contributor

mootw commented Dec 25, 2024

Understood, however, is the issue reproducible on flutter 3.24.5? The latest stable release has many known rendering bugs, some of which appear to affect flutter_map. So i want to confirm that the issue is isolated to flutter_map, and not a regression with flutter itself.

@YarosMallorca
Copy link
Author

@mootw Yes, it is reproducible on Flutter 3.24 as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue reports broken functionality or another error needs triage This new bug report needs reproducing and prioritizing
Projects
Status: To do
Development

No branches or pull requests

3 participants