mapbox / mapbox/mapbox-maps-android
Offline feature unable to download tiles for custom Styles
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 578
- Forks
- 161
- PR merge metrics
- No merged PRs in 30d
Description
## Environment
- Android OS version: all
- Devices affected: all
- Maps SDK Version: 10.9.0
## Observed behavior and steps to reproduce
Moving from legacy SDK (9.7.2) to new SDK (10.9.0) I reworked the Offline feature of my app to use the new APIs as stated on the [official documentation](https://docs.mapbox.com/android/maps/guides/offline/). Offline is working fine for Outdoor and Satellites styles, but for custom styles (we are using IGN and SwissTopo for instance) the SDK behaves as it's working but no tiles have been downloaded.
Indeed all properties from TileRegionLoadProgress are set to 0 and TileRegionCallback.run is set with `region.error` null and TileRegion not null as seen on this screenshot:

## Expected behavior
Tiles from custom styles should be properly downloaded.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the official Android offline documentation linked in the issue and reproduce the behavior using a custom style alongside Outdoor or Satellites. Trace the offline tile-region load and callback results for each style; the issue is done when custom-style tiles download and the progress and callback report the completed region.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100