mapbox / mapbox/mapbox-maps-android

Offline feature unable to download tiles for custom Styles

Open
#1,789 16 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

auto-triaged bug :beetle: feature :green_apple:
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:

Screenshot 2022-11-01 at 14 21 31

## Expected behavior
Tiles from custom styles should be properly downloaded.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.