diff options
Diffstat (limited to 'platform/ios/src/MGLMapView+Impl.mm')
-rw-r--r-- | platform/ios/src/MGLMapView+Impl.mm | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/platform/ios/src/MGLMapView+Impl.mm b/platform/ios/src/MGLMapView+Impl.mm index 9cdab4dc63..0b9ab75699 100644 --- a/platform/ios/src/MGLMapView+Impl.mm +++ b/platform/ios/src/MGLMapView+Impl.mm @@ -3,6 +3,10 @@ #import "MGLStyle_Private.h" #import "NSBundle+MGLAdditions.h" +#if TARGET_OS_IPHONE || TARGET_OS_SIMULATOR +#import "MMEEventsManager.h" +#endif + std::unique_ptr<MGLMapViewImpl> MGLMapViewImpl::Create(MGLMapView* nativeView) { return std::make_unique<MGLMapViewOpenGLImpl>(nativeView); } @@ -61,6 +65,9 @@ void MGLMapViewImpl::onDidFailLoadingMap(mbgl::MapLoadError mapError, const std: NSLocalizedFailureReasonErrorKey: @(what.c_str()), }; NSError *error = [NSError errorWithDomain:MGLErrorDomain code:code userInfo:userInfo]; +#if TARGET_OS_IPHONE || TARGET_OS_SIMULATOR + [[MMEEventsManager sharedManager] reportError:error]; +#endif [mapView mapViewDidFailLoadingMapWithError:error]; } |