FixedPanoramaViewController.m 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. * Copyright 2016 Google Inc. All rights reserved.
  3. *
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
  6. * file except in compliance with the License. You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software distributed under
  11. * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
  12. * ANY KIND, either express or implied. See the License for the specific language governing
  13. * permissions and limitations under the License.
  14. */
  15. #import "GoogleMapsDemos/Samples/FixedPanoramaViewController.h"
  16. #import <GoogleMaps/GoogleMaps.h>
  17. static CLLocationCoordinate2D kPanoramaNear = {-33.732022, 150.312114};
  18. @interface FixedPanoramaViewController () <GMSPanoramaViewDelegate>
  19. @end
  20. @implementation FixedPanoramaViewController {
  21. GMSPanoramaView *_view;
  22. }
  23. - (void)viewDidLoad {
  24. [super viewDidLoad];
  25. _view = [GMSPanoramaView panoramaWithFrame:CGRectZero
  26. nearCoordinate:kPanoramaNear];
  27. _view.camera = [GMSPanoramaCamera cameraWithHeading:180
  28. pitch:-10
  29. zoom:0];
  30. _view.delegate = self;
  31. _view.orientationGestures = NO;
  32. _view.navigationGestures = NO;
  33. _view.navigationLinksHidden = YES;
  34. self.view = _view;
  35. }
  36. @end