Skip to content
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

Storage usage for Map sources with storage format as "One image file per tile" is not accurate #20859

Open
Guylby opened this issue Sep 17, 2024 · 1 comment

Comments

@Guylby
Copy link

Guylby commented Sep 17, 2024

Description

Hi,

I've noticed that in Osmand 4.8 and 4.9 (possibly before), if using custom map sources with the storage settings as "One image file per tile", the size used shown in the Maps & Resources is always 3.4kB even if you have downloaded a lot of tiles for these map sources. This make it hard to know how much space is used by these overlays.
This does not happen when using sqlitedb as the storage format (then size used is accurate)

Steps to reproduce

Had a custom map source and use the "One image file per tile" storage setting. Download some tiles, and notice in the "Maps & Resources" menu that usage is not updated.

Actual result

"Maps & Resources" menu usage is not updated and stuck at 3.4kB:

Expected result

"Maps & Resources" menu that usage is updated.

Your Environment (required)

WARNING Crash-Logs MAY contain information you deem sensitive.
Review this CAREFULLY before posting your issue!

OsmAnd Version: 4.9.0
Android/iOS version: 13
Device model: Sony Xperia 10III
Crash-Logs: ?
@yuriiurshuliak
Copy link

The issue has been reproduced. To replicate it, enable the Online Maps plugin. Navigate to Menu → Configure map → Map source… → Add, then add multiple maps and upload them. Select an area, long-press the map, and in the context menu, choose Actions followed by the Download map option. On the Download Map screen, adjust the settings as needed and tap Download.

After downloading several online maps, go to Menu → Maps & Resources → Local → Map Sources, where you will see that each map only shows a size of 3.4kB, even though the actual online maps uploaded were several tens of megabytes.

OsmAnd~ 4.9.0#3203m, released: 2024-09-17

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants