ibrierley / flutter_map_vector_tiles

A Vector Tile Plugin for flutter_map
BSD 2-Clause "Simplified" License
14 stars 7 forks source link

Cache #10

Closed mootw closed 3 years ago

mootw commented 3 years ago

Currently there is a ram-cache (where tiles are stored while app is running). We should find a way to make tile data interface like the leaflet image tiles so they can be cached using an external solution between restarts.

ibrierley commented 3 years ago

Sounds good. Side issue, but just something that may be related, I just want to check any backup tiles get cleared out..or we leave them in cache, or whatever, but not cause issues with too many tiles in use or whatever.

ibrierley commented 3 years ago

Have swapped out http.get for flutter_cache_manager. Just wondering if there should be some retry facility for URLs, but I also feel like it's not quite as essential for a retry, as it will try and use a backup vector tile if there is one available (although that's not as much use when panning and hitting new tiles).

Will close, but happy to reopen and ponder best policy.