Files
MapLibreParticleLab/test/ios/MGLTViewController.m
2015-02-09 18:01:40 -08:00

19 lines
540 B
Objective-C

#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