mapbox / mapbox/mapbox-maps-android
Map fails to load if bike lanes url is down
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: 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
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
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