MBMCameraBoundsOptions.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. // This file is generated and will be overwritten automatically.
  2. #import <Foundation/Foundation.h>
  3. @class MBMCoordinateBounds;
  4. /** Holds options to be used for setting `camera bounds`. */
  5. NS_SWIFT_NAME(CameraBoundsOptions)
  6. __attribute__((visibility ("default")))
  7. @interface MBMCameraBoundsOptions : NSObject
  8. // This class provides custom init which should be called
  9. - (nonnull instancetype)init NS_UNAVAILABLE;
  10. // This class provides custom init which should be called
  11. + (nonnull instancetype)new NS_UNAVAILABLE;
  12. - (nonnull instancetype)initWithBounds:(nullable MBMCoordinateBounds *)bounds
  13. maxZoom:(nullable NSNumber *)maxZoom
  14. minZoom:(nullable NSNumber *)minZoom
  15. maxPitch:(nullable NSNumber *)maxPitch
  16. minPitch:(nullable NSNumber *)minPitch NS_REFINED_FOR_SWIFT;
  17. /** The latitude and longitude bounds to which the camera center are constrained. */
  18. @property (nonatomic, readonly, nullable) MBMCoordinateBounds *bounds;
  19. /** The maximum zoom level, in Mapbox zoom levels 0-25.5. At low zoom levels, a small set of map tiles covers a large geographical area. At higher zoom levels, a larger number of tiles cover a smaller geographical area. */
  20. @property (nonatomic, readonly, nullable) NSNumber *maxZoom NS_REFINED_FOR_SWIFT;
  21. /** The minimum zoom level, in Mapbox zoom levels 0-25.5. */
  22. @property (nonatomic, readonly, nullable) NSNumber *minZoom NS_REFINED_FOR_SWIFT;
  23. /** The maximum allowed pitch value in degrees. */
  24. @property (nonatomic, readonly, nullable) NSNumber *maxPitch NS_REFINED_FOR_SWIFT;
  25. /** The minimum allowed pitch value in degrees. */
  26. @property (nonatomic, readonly, nullable) NSNumber *minPitch NS_REFINED_FOR_SWIFT;
  27. @end