summaryrefslogtreecommitdiff
path: root/platform
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 /platform
parent6b3b3f3ff640e880c01aa5ac8a80eda4a309914b (diff)
downloadqtlocation-mapboxgl-69954525419b66ebae09ac21914342c31dfad190.tar.gz
[ios] Restored toggleDebug
Restored (but deprecated) a method removed in #3100 to avoid a major version bump.
Diffstat (limited to 'platform')
-rw-r--r--platform/ios/src/MGLMapView.mm10
1 files changed, 5 insertions, 5 deletions
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();