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

Not all necessary tiles are loaded after a zoom change (demo video) #463

Closed
FilipeLarga opened this issue Nov 19, 2019 · 1 comment · Fixed by #572
Closed

Not all necessary tiles are loaded after a zoom change (demo video) #463

FilipeLarga opened this issue Nov 19, 2019 · 1 comment · Fixed by #572

Comments

@FilipeLarga
Copy link

Good job with this library @johnpryan and all contributors!

I'm experiencing a bug where after zooming in to a new level, not all tiles that should appear on the screen are loaded. Moving the camera is needed to make them load.

Video demonstrating a zoom increase with not all tiles (bottom left in this case) loading until i start scrolling on the map again. https://imgur.com/a/3kfI3qM

The tiles provider used was AssetTileProvider().

Here is the code but I'm not sure how relevant it is:

FlutterMap(
  mapController: mapController,
  options: MapOptions(
    center: lisbon,
    zoom: 13.0,
    minZoom: 13.0,
    maxZoom: 16.0,
    swPanBoundary: LatLng(38.358, -9.634),
    nePanBoundary: LatLng(39.15, -8.458),
  ),
  layers: [
    TileLayerOptions(
      keepBuffer: 4,
      tileProvider: AssetTileProvider(),
      urlTemplate: "assets/map/{z}/{x}/{y}.png",
      maxZoom: 16,
      tms: true,
      backgroundColor: Colors.white,
     ),
     MarkerLayerOptions(
       markers: markers,
     ),
   ],
),

I would love to contribute myself but I'm fairly novice and looking at the source code seems very complex. Hoping to see this and the keep the old tiles until the new ones are loaded improvements for 0.8 as I truly believe that would make this the best flutter map library!

@ibrierley
Copy link
Collaborator

I'm looking for feedback on a similar issue if interested, which may fix it...
#79 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants