You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Since there is a limit the offline tiles to 6000 per user I need two methods:
How many tiles in a given MGLCoordinateBounds
How many tiles are currently saved on the device (so I can calculate remaining available)
This way I can appropriately inform user if their MGLCoordinateBounds is going to successfully download or not. AKA "Choose a smaller area, zoom size, or go delete your other offline packs to make room".
Reacted by Nadia Barbosa, Andrew Harvey, Matt Langtree, Aleksey, Chloe Krawczyk, agugel and Joshua Hart
This tool estimates the number of tiles needed for an arbitrary tile pyramid, but it hasn’t been ported to the SDKs themselves, since the actual number of tiles would depend on various factors, such as how many tiles could be reused from another downloaded pack. #4258 has some ideas for a more rigorous estimate.
How many tiles are currently saved on the device (so I can calculate remaining available)
Note that the tile count depends on the minzoom and maxzoom specified in the source's TileJSON, so calculating it depends on having downloaded at least that resource.
Whenever this issue is closed, its status on project boards automatically moves to “Resolved”... but when it’s inevitably reopened, it stays as “Resolved”. Not sure who owns those project board(s), but this seems like a flaw in the stalebot/project board relationship.
I agree this feature is a must for us too. We're getting crashes and have to "hack" our way into downloading a pack, suspending it, and then deleting it to approximate the size of the region the user wants to save. There is a huge need for this and it seems to be getting ignored.
Activity
1ec5 commentedon Sep 22, 2017
This tool estimates the number of tiles needed for an arbitrary tile pyramid, but it hasn’t been ported to the SDKs themselves, since the actual number of tiles would depend on various factors, such as how many tiles could be reused from another downloaded pack. #4258 has some ideas for a more rigorous estimate.
You can obtain the pack’s progress and count its downloaded tiles.
asheemmamoowala commentedon Sep 27, 2017
With #9906, we should be able to implement:
+[MGLOfflineStorage tileCountForRegion:]or something similar.jfirebaugh commentedon Sep 27, 2017
Note that the tile count depends on the
minzoomandmaxzoomspecified in the source's TileJSON, so calculating it depends on having downloaded at least that resource.stale commentedon Dec 4, 2018
This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.
riastrad commentedon Feb 12, 2019
This is still a fairly popular feature request, any objections to reopening?
stale commentedon Aug 11, 2019
This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.
friedbunny commentedon Aug 13, 2019
Whenever this issue is closed, its status on project boards automatically moves to “Resolved”... but when it’s inevitably reopened, it stays as “Resolved”. Not sure who owns those project board(s), but this seems like a flaw in the stalebot/project board relationship.
shabnomnom commentedon Jan 11, 2020
Hi, this feature is requested recently again by our customer. Is there any plan to further develop or invest in this feature?
Hartistic commentedon Sep 28, 2021
I agree this feature is a must for us too. We're getting crashes and have to "hack" our way into downloading a pack, suspending it, and then deleting it to approximate the size of the region the user wants to save. There is a huge need for this and it seems to be getting ignored.