Show old tiles until new ones are downloaded
When a user zooms in enough, new, more zoomed in tiles are loaded and displayed. Would it be possible to show the images of the current layer until the new pictures are loaded instead of just showing a grey map while the new tiles are loading?
Yes, we should always keep the old tiles on the screen when zooming.
I have this issue too, When it's going to be fixed?
Unfortunately, I don't have an estimate on when I'll have time to fix this
That said, we accept pull requests!
What is the work required here?
I have this issue too, when the scrolling happens the tiles which are loading turn white which is bad UX
I think this will require some additional investigation into Leaflet's tile fetching strategy. I assume it eagerly loads the tiles at the surrounding zoom levels
Just glancing over the code I think we can use the placeholder field on the FadeInImage with the previously loaded tile, if we can pass in the old coords right ?
I have the same issue, the usability is not good.
Yes, we should really try to fix this, it shouldn't be too hard. I can't make any promises but if I have time I could look into doing what @aswinmohanme suggested.
Guys you can use google_maps_flutter (Google Supported Officially) instead. It is made alongside flutter release v1.0.
@imaNNeoFighT flutter_map has also great advantages towards google_maps_flutter or is it already possible that each marker on the map is also a widget?
@RaimundWege I think it's not possible to put a widget as a marker, And maybe it is Google policy to prevent it because also in android you can't directly put a View as Marker on GoogleMap, And in android to achieve this we had to use a projection that supported by GoogleMap that converts latitude, longitude to screen pixel position, maybe in future, this functionality added to FlutterGoogleMap (or maybe it exists already).
@johnpryan @vinicentus did you find a good solution to resolve this usability issue? really hope this can be fixed.
@ganisback I really haven't had the time to look into this...
I've possibly got a workaround to help with the grey screen on zoom level changes, where I keep cached tiles for a small amount of time by default (eg 1 second), and doesn't let pruneTiles remove a tile until that amount of time has passed. It feels like it works ok for me, it's not perfect, but would be happy for someone to test it further. I've got the tile_layer.dart file edited from a git clone, added/committed. Not sure what's best for someone to look at, a git push origin master, or a merge or something ? (I'm not familiar with git).
@ibrierley you can fork the repo, push your changes to that, and make a pull request
Thanks John, I figured it yesterday and created a pull request https://github.com/johnpryan/flutter_map/pull/190 . Good practice for me!
This is the highest-voted issue, so it's next on the agenda, but I haven't found anyone interested in working on it yet.
As someone interested in this feature, but without any experience developing flutter packages, this issue seems quite daunting.
Perhaps @johnpryan or anyone experienced with this package can give a general description of the best way to implement it and someone else can actually implement it.
I'm willing to do it, I just have no idea where to start :)