-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathStoryboardMapViewExample.m
50 lines (38 loc) · 1.41 KB
/
StoryboardMapViewExample.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
//
// StoryboardMapViewExample.m
// mapboxqs
//
// Created by Tuyen Vu on 11/03/2023.
//
#import "StoryboardMapViewExample.h"
#import <MapboxMaps/MapboxMaps.h>
#import <MapboxCoreMaps/MapboxCoreMaps.h>
#import <MapboxMapObjC/MapboxMapObjC.h>
#import "MapboxMaps-Swift.h"
#import "ExampleProtocol.h"
@interface StoryboardMapViewExample () <MapInitOptionsProvider, ExampleProtocol>
@end
@implementation StoryboardMapViewExample
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view.
}
/*
#pragma mark - Navigation
// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
// Get the new view controller using [segue destinationViewController].
// Pass the selected object to the new view controller.
}
*/
- (MapInitOptions * _Nonnull)mapInitOptions {
CLLocationCoordinate2D centerLocation = CLLocationCoordinate2DMake(40.728, -74.0060);
TMBCameraOptions* cameraOptions = [[TMBCameraOptions alloc] initWithCenter:centerLocation padding:UIEdgeInsetsMake(0, 0, 0, 0) anchor:CGPointMake(0, 0) zoom:10 bearing:0 pitch:0];
return [MapInitOptionsFactory
createWithMapOptions:nil
cameraOptions:cameraOptions
styleURI:BuiltInStyles.light
styleJSON:nil
antialiasingSampleCount:1];
}
@end