FixedPanoramaViewController.m 915 B

123456789101112131415161718192021222324252627282930313233
  1. #if !defined(__has_feature) || !__has_feature(objc_arc)
  2. #error "This file requires ARC support."
  3. #endif
  4. #import "SDKDemos/Samples/FixedPanoramaViewController.h"
  5. #import <GoogleMaps/GoogleMaps.h>
  6. static CLLocationCoordinate2D kPanoramaNear = {-33.732022, 150.312114};
  7. @interface FixedPanoramaViewController () <GMSPanoramaViewDelegate>
  8. @end
  9. @implementation FixedPanoramaViewController {
  10. GMSPanoramaView *_view;
  11. }
  12. - (void)viewDidLoad {
  13. [super viewDidLoad];
  14. _view = [GMSPanoramaView panoramaWithFrame:CGRectZero
  15. nearCoordinate:kPanoramaNear];
  16. _view.camera = [GMSPanoramaCamera cameraWithHeading:180
  17. pitch:-10
  18. zoom:0];
  19. _view.delegate = self;
  20. _view.orientationGestures = NO;
  21. _view.navigationGestures = NO;
  22. _view.navigationLinksHidden = YES;
  23. self.view = _view;
  24. }
  25. @end