mapbox / mapbox/mapbox-maps-android

Map fails to load if bike lanes url is down

Open
#2,657 3 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

auto-triaged bug :beetle: ticketed
Dominant language
Kotlin
Stars
578
Forks
161
PR merge metrics
No merged PRs in 30d

Description

## Environment

- Android OS version: 16
- Devices affected: all
- Maps SDK Version: 11.12.2

## Observed behavior and steps to reproduce

- Our app embeds bike lanes in the map style as a source, like this:
"sources": { "bikeLanes": { "data": "https://bikeslanes.net/map/bike-lanes", "type": "geojson" } }

- So Mapbox should fetch the bike lanes from the provided data URL.

We have noticed that on a fresh app install, while Mapbox is initializing the map, if the bike lanes URL is down, the entire map fails to load. Mapbox does not display the map.

## Expected behavior

The map should still render. Just the bike lanes layer should not be visible.

## Notes / preliminary analysis

- iOS SDK seems to be more resilient, because the map does load on our iOS app if the bike lanes URL is down.

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

Reproduce on Android 16 with Maps SDK 11.12.2 using a map style whose GeoJSON bikeLanes source points to an unavailable URL. Investigate map initialization and compare the Android behavior with the stated iOS behavior. Done means the map renders while the bike lanes layer remains unavailable.

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.