diff --git a/include/mbgl/ios/MGLMapView.h b/include/mbgl/ios/MGLMapView.h index 46383ed13..ed0327ea2 100644 --- a/include/mbgl/ios/MGLMapView.h +++ b/include/mbgl/ios/MGLMapView.h @@ -956,7 +956,7 @@ IB_DESIGNABLE @property (nonatomic, getter=isDebugActive) BOOL debugActive __attribute__((deprecated("Use -debugMask and -setDebugMask:."))); -- (void)cycleDebugOptions __attribute__((deprecated("Use -setDebugMask:."))); +- (void)toggleDebug __attribute__((deprecated("Use -setDebugMask:."))); /** Empties the in-memory tile cache. diff --git a/platform/ios/src/MGLMapView.mm b/platform/ios/src/MGLMapView.mm index c5abf5a60..dfac4db86 100644 --- a/platform/ios/src/MGLMapView.mm +++ b/platform/ios/src/MGLMapView.mm @@ -1697,6 +1697,11 @@ mbgl::Duration MGLDurationInSeconds(NSTimeInterval duration) return self.debugMask; } +- (void)toggleDebug +{ + self.debugActive = !self.debugActive; +} + - (void)resetNorth { [self resetNorthAnimated:YES]; @@ -1714,11 +1719,6 @@ mbgl::Duration MGLDurationInSeconds(NSTimeInterval duration) self.camera = camera; } -- (void)cycleDebugOptions -{ - _mbglMap->cycleDebugOptions(); -} - - (void)emptyMemoryCache { _mbglMap->onLowMemory();