MBMCameraState.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. // This file is generated and will be overwritten automatically.
  2. #import <Foundation/Foundation.h>
  3. #import <CoreLocation/CoreLocation.h>
  4. @class MBMEdgeInsets;
  5. /** Describes the viewpoint of a camera. */
  6. NS_SWIFT_NAME(CameraState)
  7. __attribute__((visibility ("default")))
  8. @interface MBMCameraState : NSObject
  9. // This class provides custom init which should be called
  10. - (nonnull instancetype)init NS_UNAVAILABLE;
  11. // This class provides custom init which should be called
  12. + (nonnull instancetype)new NS_UNAVAILABLE;
  13. - (nonnull instancetype)initWithCenter:(CLLocationCoordinate2D)center
  14. padding:(nonnull MBMEdgeInsets *)padding
  15. zoom:(double)zoom
  16. bearing:(double)bearing
  17. pitch:(double)pitch;
  18. /** Coordinate at the center of the camera. */
  19. @property (nonatomic, readonly) CLLocationCoordinate2D center;
  20. /**
  21. * Padding around the interior of the view that affects the frame of
  22. * reference for `center`.
  23. */
  24. @property (nonatomic, readonly, nonnull) MBMEdgeInsets *padding;
  25. /**
  26. * Zero-based zoom level. Constrained to the minimum and maximum zoom
  27. * levels.
  28. */
  29. @property (nonatomic, readonly) double zoom;
  30. /** Bearing, measured in degrees from true north. Wrapped to [0, 360). */
  31. @property (nonatomic, readonly) double bearing;
  32. /** Pitch toward the horizon measured in degrees. */
  33. @property (nonatomic, readonly) double pitch;
  34. @end