Add error data to onMapLoadingError()
TypeScript definition.
#3439
nick-alekhine-cruise
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey there! The app I'm working on is trying to surface friendly error messages to our users in the event that the Mapbox API starts failing.
We've hooked into
onMapLoadingError()
and that's working great, but we don't get any information about the type of error that's getting triggered. For our use case, we want to know if this callback is getting called when the SDK throws aFailed to load tile
error message.It looks like error messages are already getting captured and emitted in both the Swift and Kotlin implementations. It also seems like we already have access to the error data in the callback. Adding an argument to the function and making the vector tiles API error out does emit this in our React Native logs:
Is adding this to the TypeScript types on the roadmap? This enhancement would be great to have 🙏
Beta Was this translation helpful? Give feedback.
All reactions