Query camera location and altitude

Obtain the current camera center coordinate and altitude.

#import "QueryCamera.h"
#import "SamplesMessage.h"
@import Wrld;


@interface QueryCamera () <WRLDMapViewDelegate>

@property (nonatomic) WRLDMapView *mapView;

@end

@implementation QueryCamera

- (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];

}

- (void)mapViewDidFinishLoadingInitialMap:(WRLDMapView *)mapView
{
    WRLDMapCamera* camera = _mapView.camera;
    
    NSString *message = [NSString stringWithFormat:@"Camera center coordinate is [%f, %f]; altitude is %f m", camera.centerCoordinate.latitude, camera.centerCoordinate.longitude, camera.altitude];
    
    [SamplesMessage showWithMessage:message
                        andDuration:[NSNumber numberWithInt:10]];
}


@end
v0.0.1600