mapbox / mapbox/mapbox-maps-ios
onStyleLoaded not always triggered
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 601
- Forks
- 196
- PR merge metrics
- No merged PRs in 30d
Description
Environment
- Xcode version: 16.0
- iOS version: 18.1
- Devices affected: Simulator / iPhone 13 Pro Max
- Maps SDK Version: 11.8.0
Observed behavior and steps to reproduce
Rarely but consistently after a number of attempts, onStyleLoaded is not being triggered. The style does seem to be loading.
Expected behavior
onStyleLoaded should be triggered every time the map loads the style
Notes / preliminary analysis
Not seeing any errors from
onMapLoadingError
onMapLoaded does get called even when onStyleLoaded does not
Additional links and references
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 by reproducing the intermittent behavior with Maps SDK 11.8.0 in the listed Xcode 16.0 and iOS 18.1 environments, using the onStyleLoaded, onMapLoaded, and onMapLoadingError callbacks. Compare callback behavior across repeated style loads and determine why onMapLoaded can occur without onStyleLoaded. Done means onStyleLoaded is reliably triggered for every successful style load and the behavior is covered by a regression check.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, swift
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100