-
-
Notifications
You must be signed in to change notification settings - Fork 860
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
Possibility of tiles caching #276
Comments
The API allows for custom implementations of If you are looking to cache images on disk you could look at implementing your own but you run the risk of storing a lot of tiles on the device. I created #279 to track. Thanks for the feedback! Let me know if I'm misunderstanding |
Thanks, that's what I was looking for. My problem is that user might be in poor connection area. |
Yes, this would probably require some design around how to best cache the tiles, so I'd rather leave it up to the user to implement as a custom |
Understood. I guess I would need to dig into it. |
Seems like using |
@MichalMisiaszek What is the default expiration for tile images in the current implementation with cached network image? |
According to code 30 days ?
But it is stored in temporary not app directory so OS might be removing faster. I will keep it app storage. |
@MichalMisiaszek When you accomplish saving the tiles in app storage, can you please share it here? It would be a great enhancement for the end users data plans:) Also it would be perfect to have the ability to show tiles from app storage only if network is slow. |
Yes, I plan to make it work and then will share here. |
Hello, |
Hello,
Thank you for great plugin, I am build app in Flutter with heavy use of map and choose flutter_map over official plugin for many reasons. My users will use map in the range of connection/wifi but then go out where connection is poor or at all.
Is it possible to cache tiles downloaded before ? Like user looked at map already and we keep this tile on device for some time (with expiry) or until next possibility to download ?
BTW. OpenMaps are very often failing to download before timeout rising exception.
Thanks again !
The text was updated successfully, but these errors were encountered: