GMSPanoramaLayer.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. //
  2. // GMSPanoramaLayer.h
  3. // Google Maps SDK for iOS
  4. //
  5. // Copyright 2013 Google Inc.
  6. //
  7. // Usage of this SDK is subject to the Google Maps/Google Earth APIs Terms of
  8. // Service: https://developers.google.com/maps/terms
  9. //
  10. #import <CoreLocation/CoreLocation.h>
  11. #import <QuartzCore/QuartzCore.h>
  12. #import <GoogleMaps/GMSCALayer.h>
  13. #if __has_feature(modules)
  14. @import GoogleMapsBase;
  15. #else
  16. #import <GoogleMapsBase/GoogleMapsBase.h>
  17. #endif
  18. GMS_ASSUME_NONNULL_BEGIN
  19. /** kGMSLayerPanoramaHeadingKey ranges from [0, 360). */
  20. extern NSString *const kGMSLayerPanoramaHeadingKey;
  21. /** kGMSLayerPanoramaPitchKey ranges from [-90, 90]. */
  22. extern NSString *const kGMSLayerPanoramaPitchKey;
  23. /** kGMSLayerCameraZoomLevelKey ranges from [1, 5], default 1. */
  24. extern NSString *const kGMSLayerPanoramaZoomKey;
  25. /** kGMSLayerPanoramaFOVKey ranges from [1, 160] (in degrees), default 90. */
  26. extern NSString *const kGMSLayerPanoramaFOVKey;
  27. /**
  28. * GMSPanoramaLayer is a custom subclass of CALayer, provided as the layer
  29. * class on GMSPanoramaView. This layer should not be instantiated directly.
  30. */
  31. @interface GMSPanoramaLayer : GMSCALayer
  32. @property(nonatomic, assign) CLLocationDirection cameraHeading;
  33. @property(nonatomic, assign) double cameraPitch;
  34. @property(nonatomic, assign) float cameraZoom;
  35. @property(nonatomic, assign) double cameraFOV;
  36. @end
  37. GMS_ASSUME_NONNULL_END