flutter_map icon indicating copy to clipboard operation
flutter_map copied to clipboard

Use image cache for tiles images

Open SamuelRioTz opened this issue 7 years ago • 4 comments

Every tiles are downloaded again after every restart the app, it will be good if we use CachedNetworkImageProvider instead NetworkImageWithRetry.

CachedNetworkImageProvider is part of: https://pub.dartlang.org/packages/cached_network_image

I already have an example working with both options:

if(options.cachedTiles){ return new CachedNetworkImageProvider(url); }else{
return new NetworkImageWithRetry(url); }

SamuelRioTz avatar Jan 08 '19 17:01 SamuelRioTz

Cool - perhaps we should just make the image provider configurable.

johnpryan avatar Feb 03 '19 01:02 johnpryan

This is especially prudent as many of us pay for our map tiles

... though perhaps we should also be spying to use this library :D is there a donation link anywhere ?

On Sun, 3 Feb 2019 at 01:24, John Ryan [email protected] wrote:

Cool - perhaps we should just make the image provider configurable.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/johnpryan/flutter_map/issues/203#issuecomment-460014348, or mute the thread https://github.com/notifications/unsubscribe-auth/ALluZQs8N-qM8jOHxOGrGuq5C0ECpbyXks5vJjo7gaJpZM4Z15-S .

csjames avatar Feb 03 '19 01:02 csjames

Haha I'll consider setting up a patreon... I should have more time to look through all the issues soon. I'm excited by all the usage this is getting.

johnpryan avatar Feb 03 '19 01:02 johnpryan

Feature released in 0.5.0 : https://github.com/johnpryan/flutter_map/pull/204

This issue can be closed.

alxlion avatar Feb 22 '19 08:02 alxlion