You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

33 lines
922 B

#if !defined(__has_feature) || !__has_feature(objc_arc)
#error "This file requires ARC support."
#endif
#import "GoogleMapsDemos/Samples/FixedPanoramaViewController.h"
#import <GoogleMaps/GoogleMaps.h>
static CLLocationCoordinate2D kPanoramaNear = {-33.732022, 150.312114};
@interface FixedPanoramaViewController () <GMSPanoramaViewDelegate>
@end
@implementation FixedPanoramaViewController {
GMSPanoramaView *_view;
}
- (void)viewDidLoad {
[super viewDidLoad];
_view = [GMSPanoramaView panoramaWithFrame:CGRectZero
nearCoordinate:kPanoramaNear];
_view.camera = [GMSPanoramaCamera cameraWithHeading:180
pitch:-10
zoom:0];
_view.delegate = self;
_view.orientationGestures = NO;
_view.navigationGestures = NO;
_view.navigationLinksHidden = YES;
self.view = _view;
}
@end