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.
Creating an OfflineTilePyramidRegionDefinition crashes with asset:// URL #5271
We've recently tested the offline download on Android and although it looks like the mapView itself accepts styleURLs looking like "asset://style.json" (they load and the tiles are being requested correctly), but the class OfflineTilePyramidRegionDefinition only seems to accept styleUrls of the form "mapbox://styles/mapbox/streets-v9". styleURLs pointing into the assets seem to later cause an error like getHost() called on null reference (or something along that line) and then result in a termination from within the mapbox-gl.so
changed the title [-]Android, Offline: Offline download with style in assets folder terminates the app[/-][+]Creating an OfflineTilePyramidRegionDefinition crashes with asset:// URL[/+]on Jun 7, 2016
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Activity
jfirebaugh commentedon Jun 7, 2016
asset://URLs are not supported for offline. You'll need to use amapbox://URL, or have the style hosted somewhere else and use a regular URL.That said, the expected behavior is an error message, not a crash. Leaving this issue open to investigate that problem.
[-]Android, Offline: Offline download with style in assets folder terminates the app[/-][+]Creating an OfflineTilePyramidRegionDefinition crashes with asset:// URL[/+]glegrain commentedon Aug 9, 2016
Hi, I am currently having the same issue on iOS. mapView accepts
asset://URLs butMGLTilePyramidOfflineRegiondoes not allow local file URL.Looking at the MGLTilePyramidOfflineRegion documentation and code:
Why is that?
jussirantala commentedon Mar 14, 2018
Why is this? If I want to serve offline tiles, I need to run a http server on the phone...
stale commentedon Oct 27, 2018
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
stale commentedon Dec 6, 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.