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

Tile boundaries visible at certain zoom levels #1126

Closed
pmjobin opened this issue Jan 12, 2022 · 10 comments
Closed

Tile boundaries visible at certain zoom levels #1126

pmjobin opened this issue Jan 12, 2022 · 10 comments
Labels
bug This issue reports broken functionality or another error duplicate This issue already exists

Comments

@pmjobin
Copy link
Contributor

pmjobin commented Jan 12, 2022

I built the demo app using Flutter 2.8.1 (desktop linux target) and I noticed that tile boundaries pop out as white lines at certain zoom levels while they are seamless at others.

Screenshot from 2022-01-12 15-35-32

@jiazeh
Copy link

jiazeh commented Jan 13, 2022

Same issue, and this issue only happens on Flutter 2.8.x and above..

@mohammedX6
Copy link

+1

@DrNorton
Copy link

DrNorton commented Jan 17, 2022

+1
But this problem depends on rotation disable
If I run a demo project from the repo, with disabled zoom (~InteractiveFlag.rotate)

FlutterMap( options: MapOptions( center: LatLng(51.5, -0.09), interactiveFlags: InteractiveFlag.all & ~InteractiveFlag.rotate, zoom: 5.0, )

I see white lines

image

There isn't any problem if the rotation is enabled

@ibrierley
Copy link
Contributor

Does this happen on mobile too, or just on desktop ?

@DrNorton
Copy link

DrNorton commented Jan 17, 2022

Does this happen on mobile too, or just on desktop ?

On mobile too, but only with disabled rotation (by interactiveFlags or nonRotatedLayers)

@JaffaKetchup
Copy link
Member

This seems strange, and would be probably Flutter 2.8's fault, because I haven't seen this before.
Maybe the changelog will hold the answers?

@DrNorton
Copy link

I think that located problem, if I delete Opacity widget in _AnimatedTileState

Before:

return Opacity( opacity: widget.tile.opacity, child: widget.tileBuilder == null ? tileWidget : widget.tileBuilder!(context, tileWidget, widget.tile), );

After:

return widget.tileBuilder == null ? tileWidget : widget.tileBuilder!(context, tileWidget, widget.tile);

The problem is gone. There are no white lines.

And there are many opacity issues that were merged in [release notes](https://docs.flutter.dev/development/tools/sdk/release-notes/release-notes-2.8.

@ibrierley
Copy link
Contributor

Good find, this url should work if anyone has problems with above url https://docs.flutter.dev/development/tools/sdk/release-notes/release-notes-2.8.0

@github-actions
Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the Stale label Mar 11, 2022
@JaffaKetchup
Copy link
Member

Duplicate of #1156

@JaffaKetchup JaffaKetchup added duplicate This issue already exists and removed Stale labels Mar 11, 2022
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 duplicate This issue already exists
Projects
None yet
Development

No branches or pull requests

6 participants