flutter-maplibre-gl icon indicating copy to clipboard operation
flutter-maplibre-gl copied to clipboard

Size of downloaded offline regions

Open noorbakerally opened this issue 1 year ago • 6 comments

Is it possible to get metadata about the downloaded region such as the date the download took place and the disk size taken up by the region on disk?

noorbakerally avatar Apr 04 '23 16:04 noorbakerally

We still need to work on the download. The priority is to allow more control over the ambiant cache.

mariusvn avatar Apr 05 '23 07:04 mariusvn

@mariusvn ok, no worries, thanks

noorbakerally avatar Apr 05 '23 07:04 noorbakerally

@mariusvn What is the size of the tile downloaded, is it 256x256px or 512x512px, for the region, I can calculate the number of tiles, so if i know the size of one standard tile, i can multiply and get an approximate size

noorbakerally avatar Apr 07 '23 06:04 noorbakerally

here are for 256x256 for png, should be 262.14KB and here are for 512x512 for png shoud be 1.05MB

but there are lossless png compression sometimes so, it can change quite a lot. The numbers up there are for uncompressed pngs

mariusvn avatar Apr 07 '23 10:04 mariusvn

@mariusvn no, my question was, do the plugin download 256x256px or 512x512px tile?

noorbakerally avatar Apr 07 '23 22:04 noorbakerally

depends on your source settings, it can do both. I think the standard one is 256

mariusvn avatar Apr 11 '23 07:04 mariusvn