diff options
Diffstat (limited to 'platform/ios/src')
-rw-r--r-- | platform/ios/src/MGLMapView.mm | 5 | ||||
-rw-r--r-- | platform/ios/src/MGLMapView_Private.h | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/platform/ios/src/MGLMapView.mm b/platform/ios/src/MGLMapView.mm index 5074b783ba..85a2e3be92 100644 --- a/platform/ios/src/MGLMapView.mm +++ b/platform/ios/src/MGLMapView.mm @@ -776,6 +776,11 @@ public: self.lastSnapshotImage = nil; } +- (MGLMapViewImpl *)viewImpl +{ + return _mbglView.get(); +} + #pragma mark - Layout - + (BOOL)requiresConstraintBasedLayout diff --git a/platform/ios/src/MGLMapView_Private.h b/platform/ios/src/MGLMapView_Private.h index eff3f464a4..08c1ff410d 100644 --- a/platform/ios/src/MGLMapView_Private.h +++ b/platform/ios/src/MGLMapView_Private.h @@ -9,6 +9,7 @@ namespace mbgl { class Renderer; } +class MGLMapViewImpl; @class MGLSource; /// Minimum size of an annotation’s accessibility element. @@ -57,6 +58,9 @@ FOUNDATION_EXTERN MGL_EXPORT MGLExceptionName const _Nonnull MGLUnderlyingMapUna /** Empties the in-memory tile cache. */ - (void)didReceiveMemoryWarning; +/** Returns an instance of MGLMapView implementation. Used for integration testing. */ +- (nonnull MGLMapViewImpl *) viewImpl; + - (void)pauseRendering:(nonnull NSNotification *)notification; - (void)resumeRendering:(nonnull NSNotification *)notification; @property (nonatomic, nonnull) MGLUserLocationAnnotationView *userLocationAnnotationView; |