MPICameraControlsManager
public class MPICameraControlsManager
Camara controls manager
-
Get current camera rotation of
MPIMapView
Declaration
Swift
public internal(set) var rotation: Double { get }
-
Get current camera tilt of
MPIMapView
Declaration
Swift
public internal(set) var tilt: Double { get }
-
Get current camera zoom of
MPIMapView
Declaration
Swift
public internal(set) var zoom: Double { get }
-
Sets the current camera rotation of
MPIMapView
Declaration
Swift
public func setRotation(rotation: Double, callback: ((String?, String?) -> Void)? = nil)
Parameters
rotation
The angle in degrees relative to north to set the current camera rotation to
callback
Callback for when the camera rotation has been set
Return Value
Void
-
Sets the current camera tilt of
MPIMapView
Declaration
Swift
public func setTilt(tilt: Double, callback: ((String?, String?) -> Void)? = nil)
Parameters
tilt
The angle in radians from top-down view to set the current camera tilt to
callback
Callback for when the camera tilt has been set
Return Value
Void
-
Sets the current camera zoom of
MPIMapView
Declaration
Swift
public func setZoom(zoom: Double, callback: ((String?, String?) -> Void)? = nil)
Parameters
zoom
The distance in meters from the camera to the ground
callback
Callback for when the camera zoom has been set
Return Value
Void
-
Sets the minimum zoom level of
MPIMapView
Declaration
Swift
public func setMinZoom(zoomLevel: Int)
Return Value
Void
-
Sets the minimum zoom level of
MPIMapView
Declaration
Swift
public func setMaxZoom(zoomLevel: Int)
Return Value
Void