summaryrefslogtreecommitdiff
path: root/platform/ios/app/MBXViewController.m
diff options
context:
space:
mode:
authorLloyd Sheng <i@lloydsheng.com>2019-01-30 15:39:29 +0800
committerGitHub <noreply@github.com>2019-01-30 15:39:29 +0800
commite22d28c285c1543ebbf75d205f0129e74b0fbb8a (patch)
tree09e5ebae51df26d3e68cb8f0f95ff0296673b808 /platform/ios/app/MBXViewController.m
parent44fbba8514554dd05a0d8abc3f33f21840a73033 (diff)
downloadqtlocation-mapboxgl-e22d28c285c1543ebbf75d205f0129e74b0fbb8a.tar.gz
[ios] Enable customize positions of mapview ornaments (#13556)
* APIs for customize positions of ornaments * Adopt anchors layout * Remove iOS8 layout code
Diffstat (limited to 'platform/ios/app/MBXViewController.m')
-rw-r--r--platform/ios/app/MBXViewController.m11
1 files changed, 10 insertions, 1 deletions
diff --git a/platform/ios/app/MBXViewController.m b/platform/ios/app/MBXViewController.m
index b2c6ca26b3..9c506cadfa 100644
--- a/platform/ios/app/MBXViewController.m
+++ b/platform/ios/app/MBXViewController.m
@@ -7,6 +7,7 @@
#import "MBXUserLocationAnnotationView.h"
#import "LimeGreenStyleLayer.h"
#import "MBXEmbeddedMapViewController.h"
+#import "MBXOrnamentsViewController.h"
#import "MBXFrameTimeGraphView.h"
@@ -104,8 +105,9 @@ typedef NS_ENUM(NSInteger, MBXSettingsMiscellaneousRows) {
MBXSettingsMiscellaneousShowSnapshots,
MBXSettingsMiscellaneousShouldLimitCameraChanges,
MBXSettingsMiscellaneousShowCustomLocationManager,
+ MBXSettingsMiscellaneousOrnamentsPlacement,
MBXSettingsMiscellaneousPrintLogFile,
- MBXSettingsMiscellaneousDeleteLogFile,
+ MBXSettingsMiscellaneousDeleteLogFile
};
// Utility methods
@@ -499,6 +501,7 @@ CLLocationCoordinate2D randomWorldCoordinate() {
@"Show Snapshots",
[NSString stringWithFormat:@"%@ Camera Changes", (_shouldLimitCameraChanges ? @"Unlimit" : @"Limit")],
@"View Route Simulation",
+ @"Ornaments Placement",
]];
if (self.debugLoggingEnabled)
@@ -756,6 +759,12 @@ CLLocationCoordinate2D randomWorldCoordinate() {
}
break;
}
+ case MBXSettingsMiscellaneousOrnamentsPlacement:
+ {
+ MBXOrnamentsViewController *ornamentsViewController = [[MBXOrnamentsViewController alloc] init];
+ [self.navigationController pushViewController:ornamentsViewController animated:YES];
+ break;
+ }
default:
NSAssert(NO, @"All miscellaneous setting rows should be implemented");
break;