summaryrefslogtreecommitdiff
path: root/test/ios/MGLTViewController.m
blob: 9caa64c79affe83099d5f9daea72f3b5b0f9071a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#import "MGLTViewController.h"
#import "MGLMapView.h"

@implementation MGLTViewController

- (void)viewDidLoad
{
    [super viewDidLoad];

    MGLMapView *mapView = [[MGLMapView alloc] initWithFrame:self.view.bounds
                                                accessToken:@"pk.eyJ1IjoianVzdGluIiwiYSI6Ik9RX3RRQzAifQ.dmOg_BAp1ywuDZMM7YsXRg"];
    mapView.viewControllerForLayoutGuides = self;
    mapView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;

    [self.view addSubview:mapView];
}

@end