This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
-[MGLMapViewDelegate mapViewDidFailLoadingMap:withError:] error is uninformative #8398
Labels
Core
The cross-platform C++ core, aka mbgl
iOS
Mapbox Maps SDK for iOS
macOS
Mapbox Maps SDK for macOS
MapKit parity
For feature parity with MapKit on iOS or macOS
refactor
The error passed into
-[MGLMapViewDelegate mapViewDidFailLoadingMap:withError:]
is an uninformative error. We synthesize this generic error for compatibility with MapKit because mbgl doesn’t actually tell the SDK what went wrong. Per #8377 (comment),mbgl::MapObserver::onDidFailLoadingMap()
should accept the error or error message as a parameter. This would allow all the SDKs – not only the iOS and macOS SDKs – to provide more information when the map fails to load for some reason./cc @brunoabinader @fabian-guerra
The text was updated successfully, but these errors were encountered: