MMKCameraBounds
|
class MMKCameraBounds : NSObject |
The object that is used to interact with the map bounds.
Summary
Instance methods
|
func getMinZoom() -> Float |
|
func getMaxZoom() -> Float |
|
func setMinZoomPreferenceWithZoom(_ zoom: Float) |
|
func setMaxZoomPreferenceWithZoom(_ zoom: Float) |
|
func resetMinMaxZoomPreference() |
Properties
|
var latLngBounds: MMKBoundingBox? { get set } |
|
var isValid: Bool { get } |
Instance methods
getMinZoom()
|
func getMinZoom() -> Float |
Minimum available zoom level considering zoom level hint provided via #setMinZoomPreference.
getMaxZoom()
|
func getMaxZoom() -> Float |
Maximum available zoom level considering zoom level hint provided via #setMaxZoomPreference
setMinZoomPreferenceWithZoom(_:)
|
func setMinZoomPreferenceWithZoom(_ zoom: Float) |
Set minimum available zoom level hint.
setMaxZoomPreferenceWithZoom(_:)
|
func setMaxZoomPreferenceWithZoom(_ zoom: Float) |
Set maximum available zoom level hint.
resetMinMaxZoomPreference()
|
func resetMinMaxZoomPreference() |
Reset minimum and maximum available zoom level hints.
Properties
latLngBounds
|
var latLngBounds: MMKBoundingBox? { get set } |
Latitudes should be in range [-89.3, 89.3]. Longitudes should be in range [-180, 180).
Optional property, can be nil.
isValid
|
var isValid: Bool { get } |
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.