summaryrefslogtreecommitdiff
path: root/test/ios/MGLTViewController.m
blob: 09c60bf614feab3c6cc35854d7995b3e2d5846ec (plain)
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
#import "MGLTViewController.h"
#import <Mapbox/Mapbox.h>

@implementation MGLTViewController
{
    MGLMapView *_mapView;
}

- (void)viewDidLoad
{
    [super viewDidLoad];

    _mapView = [[MGLMapView alloc] initWithFrame:self.view.bounds];
    _mapView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;

    [self.view addSubview:_mapView];
}

- (void)insetMapView
{
    _mapView.frame = CGRectInset(_mapView.frame, 50, 50);
}

- (void)resetMapView
{
    _mapView.frame = self.view.bounds;
}

@end