summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2016-01-28 22:36:58 -0800
committerMinh Nguyễn <mxn@1ec5.org>2016-01-28 22:36:58 -0800
commit69954525419b66ebae09ac21914342c31dfad190 (patch)
treef8223c172943086b7e428313c1c21a1425e72b2d
parent6b3b3f3ff640e880c01aa5ac8a80eda4a309914b (diff)
downloadqtlocation-mapboxgl-69954525419b66ebae09ac21914342c31dfad190.tar.gz
[ios] Restored toggleDebug
Restored (but deprecated) a method removed in #3100 to avoid a major version bump.
-rw-r--r--include/mbgl/ios/MGLMapView.h2
-rw-r--r--platform/ios/src/MGLMapView.mm10
2 files changed, 6 insertions, 6 deletions
diff --git a/include/mbgl/ios/MGLMapView.h b/include/mbgl/ios/MGLMapView.h
index 46383ed137..ed0327ea28 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 c5abf5a600..dfac4db862 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();