Closed jgrant41475 closed 9 months ago
See also: mapbox/mapbox-maps-ios#1056
@mfazekas in the link you posted about this upstream issue above, the person there recommended to continue using the legacy offline APIs for offline support of zooms higher than 16. Is there any way in version 10 of this repo to use the legacy offline APIs mentioned in the ticket? Thanks!
EDIT: Sorry disregard, I just noticed in the docs there is a legacy offline maps API still there. I'll try that out. Thanks!
@ZiZasaurus can you look this problem
https://github.com/rnmapbox/maps/issues/3076#issuecomment-2011396346
@jgrant41475 , am also facing the same if you solved the problem , please can you guide me.
@jgrant41475 , am also facing the same if you solved the problem , please can you guide me.
Hey @sampathkumarch, sorry for the late response I'm pretty bad at checking my notifications.
After discussing with the mapbox community team, we ultimately decided to accept the zoom limitations with the mapbox SDK.
The limitation stems from the fact that the default tiling scheme only goes up to zoom level 16, so if you are able to use a custom imagery source that does contain higher zoom levels, then the SDK should work as expected. Unfortunately, for our needs, this was not a feasible solution.
Below is a snippet of the communication that I hope provides useful context for others with this issue:
So I've learned from the team that the core restriction actually stems from the Tiling Scheme of the core SDK. The default (which was decided based on vector tiles, as you note) only goes up to level 16, which means that if a tiling scheme is not specified by the TileJSON for the tileset source, then GL native uses the default one (z16). To enable caching of higher zoom levels, the source (in this case, the core Mapbox satellite tileset) would need to include a custom tiling scheme that includes the higher zoom levels.
Mapbox Implementation
Mapbox
Mapbox Version
default
Platform
iOS, Android
@rnmapbox/maps
version10.1.0-rc.4
Standalone component to reproduce
Observed behavior and steps to reproduce
Using the Offline Example I am able to successfully download an offline tilepack for zoom levels 10-20.
When the minZoom level is changed to be greater than or equal to 16, the download will fail, showing the progress percentage as 'NaN'
Expected behavior
Offline manager should create a tilepack for the zoom levels request
Notes / preliminary analysis
Even when the minZoom is less than 16, the actual downloaded tiles don't contain any tiles for any zoom level past 15. This can be confirmed by creating a tilepack for zoom levels 10-20 and another for zoom levels 10-15, then comparing the resource size and noticing that they are exactly the same.
Additional links and references
https://github.com/rnmapbox/maps/blob/main/example/src/examples/Map/OfflineExample.tsx