Skip to content

TileLayer on IOs phones "breaks" and don't show parts when you zoom in/out multiple times [BUG]  #1509

Closed
@fabionfd

Description

@fabionfd

What is the bug?

I download some zip files, unzip them on the phone and use it to source some TileLayers on my app, I use the same pattern of {z}-{x}-{y} but locally so the layers will work offline. When you zoom in and out the Layers starts to bug and don't show correctly as it does on Android. I've upgraded to the last version(4.0.0) and the bug persists, and only occurs on IOs phones(just tested on android and ios phones).

How can we reproduce it?

In my usecase I have up to 8 local tilelayers showing at once, it's quite simple to reproduce, just zoom in and out several times on an iphone and the layers start to lose some parts. I couldn't reproduce it on ios emulator so you need a real device to see the bug.

              String url = '';
              url = "${dir.path}/{z}-{x}-{y}.sigma";
                layers.add(
                  TileLayer(
                    maxNativeZoom: 15,
                    tileProvider: FileTileProvider(),
                    urlTemplate: url,
                    tms: true,
                    backgroundColor: Colors.transparent,
                  ),
                );

this is a sample of a tile that I use on my app, it's inside a for loop for each of the directories of tiles.
I don't know if I could be clear but if you can't undestant something just ask me and I can provide more context to the problem, also I'm not a native english speaker so, sorry about any mistakes of that sort.

Do you have a potential solution?

No response

Platforms

IOs 16.4.1(but other versions seems to have the same problem)

Severity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis issue reports broken functionality or another errorneeds triageThis new bug report needs reproducing and prioritizing

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions