Move the camera

Simple camera movement.

#import "MoveCamera.h"
@import Wrld;


@interface MoveCamera () <WRLDMapViewDelegate>

@property (nonatomic) WRLDMapView *mapView;

@end

@implementation MoveCamera

- (void)viewDidLoad
{
    [super viewDidLoad];
    
    _mapView = [[WRLDMapView alloc] initWithFrame:self.view.bounds];
    
    _mapView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
    _mapView.delegate = self;
    
    [_mapView setCenterCoordinate:CLLocationCoordinate2DMake(37.7858, -122.401)
                        zoomLevel:15
                         animated:NO];
    
    [self.view addSubview:_mapView];
}

// wait until map finishes loading before moving camera
- (void)mapViewDidFinishLoadingInitialMap:(WRLDMapView *)mapView
{
    [_mapView setCenterCoordinate:CLLocationCoordinate2DMake(37.7952, -122.4028)
                        zoomLevel:18
                         animated:NO];
}

@end
v0.0.1600