MMKCameraBounds

@interface MMKCameraBounds : NSObject

The object that is used to interact with the map bounds.

Summary

Instance methods

- (float)getMinZoom;
Minimum available zoom level considering zoom level hint provided via #setMinZoomPreference

- (float)getMaxZoom;
Maximum available zoom level considering zoom level hint provided via #setMaxZoomPreference

- (void)setMinZoomPreferenceWithZoom:(float)zoom;
Set minimum available zoom level hint

- (void)setMaxZoomPreferenceWithZoom:(float)zoom;
Set maximum available zoom level hint

- (void)resetMinMaxZoomPreference;
Reset minimum and maximum available zoom level hints

Properties

@property (nonatomic, assign, unsafe_unretained, readwrite, nullable)
    MMKBoundingBox *latLngBounds;

Latitudes should be in range [-89

@property (nonatomic, readonly, getter=isValid) BOOL valid;
Tells if this object is valid or no

Instance methods

getMinZoom

- (float)getMinZoom;

Minimum available zoom level considering zoom level hint provided via #setMinZoomPreference.


getMaxZoom

- (float)getMaxZoom;

Maximum available zoom level considering zoom level hint provided via #setMaxZoomPreference


setMinZoomPreferenceWithZoom:

- (void)setMinZoomPreferenceWithZoom:(float)zoom;

Set minimum available zoom level hint.


setMaxZoomPreferenceWithZoom:

- (void)setMaxZoomPreferenceWithZoom:(float)zoom;

Set maximum available zoom level hint.


resetMinMaxZoomPreference

- (void)resetMinMaxZoomPreference;

Reset minimum and maximum available zoom level hints.


Properties

latLngBounds

@property (nonatomic, assign, unsafe_unretained, readwrite, nullable)
    MMKBoundingBox *latLngBounds;

Latitudes should be in range [-89.3, 89.3]. Longitudes should be in range [-180, 180).

Optional property, can be nil.


valid

@property (nonatomic, readonly, getter=isValid) BOOL valid;

Tells if this object is valid or no. Any method called on an invalid object will throw an exception. The object becomes invalid only on UI thread, and only when its implementation depends on objects already destroyed by now. Please refer to general docs about the interface for details on its invalidation.