CMMapController
public class CMMapController : NSObject, TGMapViewDelegate, CLLocationManagerDelegate
Map controller.
Usage example:
let mapView: CMMapView = ...;
let mapController = CMMapController.instance(mapView)
mapController?.create();
-
map controller delegate, see
CMMapControllerDelegate
Declaration
Swift
public var delegate: CMMapControllerDelegate?
-
UISettings for user
Declaration
Swift
public let settings: CMUISettings
-
Last user location, nil if myLocationEnabled is
false
Declaration
Swift
public var myLocation: CMLatLng?
-
My location enbale, True to enable MyLocation
Declaration
Swift
public var myLocationEnabled: Bool
-
Instanciante new MapController
Declaration
Swift
public static func instance(_ mapView: CMMapView) -> CMMapController
-
Create a mapView
Declaration
Swift
public func create()
-
Load scene file
Declaration
Swift
public func loadSceneFile(scene: String)
Parameters
scene
the scene path URL
-
Loads a scene asynchronously, with a list of updates to be applied to the scene. If a scene update error happens, scene updates won’t be applied.
Declaration
Swift
public func loadSceneFile(scene: String, keyPath: String, keyValue: String)
Parameters
scene
the scene path URL
keyPath
the key path
newValue
new value
-
Update map camera according CameraUpdate. Animates the movement of the camera.
Declaration
Swift
public func animateCamera(cameraUpdate: CMCameraUpdate)
Parameters
cameraUpdate
The change that should be applied to the camera.
-
Update map camera according CameraUpdate. Animates the movement of the camera.
Declaration
Swift
public func animateCamera(cameraUpdate: CMCameraUpdate, duration: Float)
Parameters
cameraUpdate
The change that should be applied to the camera.
duration
Time in seconds to ease to the given position
-
Update map camera according CameraUpdate.
Declaration
Swift
public func moveCamera(cameraUpdate: CMCameraUpdate)
Parameters
cameraUpdate
The change that should be applied to the camera.
-
Update map camera according CameraUpdate.
Declaration
Swift
public func getCameraPosition() -> CMCameraPosition
Return Value
Current camera state.
-
Remove all features and layers.
Declaration
Swift
public func clear()
-
Gets feature layer
Declaration
Swift
public func getLayers() -> Set<CMLayer>
Return Value
All map layers
-
Put feature
Declaration
Swift
public func put(feature: CMFeature) -> Bool
Parameters
feature
Feature to add
Return Value
True: success, False: fails
-
Remove feature
Declaration
Swift
public func remove(feature: CMFeature)
Parameters
feature
Feature to remove
-
Remove Array of feature
Declaration
Swift
public func remove(features: Set<CMFeature>)
Parameters
feature
Array to remove
-
Remove all markers
Declaration
Swift
public func removeAllMarkers()
-
Remove layer and remove markers inside layer
Declaration
Swift
public func remove(layer: CMLayer)
Parameters
feature
Layer to remove
Return Value
CMMapController.self
-
Undocumented
Declaration
Swift
public class CMMapController : NSObject, TGMapViewDelegate, CLLocationManagerDelegate
-
Undocumented
Declaration
Swift
public class CMMapController : NSObject, TGMapViewDelegate, CLLocationManagerDelegate
-
Undocumented
Declaration
Swift
public class CMMapController : NSObject, TGMapViewDelegate, CLLocationManagerDelegate
-
Undocumented
Declaration
Swift
public class CMMapController : NSObject, TGMapViewDelegate, CLLocationManagerDelegate
-
Undocumented
Declaration
Swift
public class CMMapController : NSObject, TGMapViewDelegate, CLLocationManagerDelegate
-
Undocumented
Declaration
Swift
public class CMMapController : NSObject, TGMapViewDelegate, CLLocationManagerDelegate
-
Undocumented
Declaration
Swift
public class CMMapController : NSObject, TGMapViewDelegate, CLLocationManagerDelegate
-
Undocumented
Declaration
Swift
public class CMMapController : NSObject, TGMapViewDelegate, CLLocationManagerDelegate
-
Undocumented
Declaration
Swift
public class CMMapController : NSObject, TGMapViewDelegate, CLLocationManagerDelegate
-
Undocumented
Declaration
Swift
public class CMMapController : NSObject, TGMapViewDelegate, CLLocationManagerDelegate
-
Undocumented
Declaration
Swift
public class CMMapController : NSObject, TGMapViewDelegate, CLLocationManagerDelegate
-
Undocumented
Declaration
Swift
public class CMMapController : NSObject, TGMapViewDelegate, CLLocationManagerDelegate
-
Undocumented
Declaration
Swift
public class CMMapController : NSObject, TGMapViewDelegate, CLLocationManagerDelegate
-
Undocumented
Declaration
Swift
public class CMMapController : NSObject, TGMapViewDelegate, CLLocationManagerDelegate
-
Undocumented
Declaration
Swift
public class CMMapController : NSObject, TGMapViewDelegate, CLLocationManagerDelegate
-
Undocumented
Declaration
Swift
public class CMMapController : NSObject, TGMapViewDelegate, CLLocationManagerDelegate
-
Undocumented
Declaration
Swift
public class CMMapController : NSObject, TGMapViewDelegate, CLLocationManagerDelegate
-
Undocumented
Declaration
Swift
public class CMMapController : NSObject, TGMapViewDelegate, CLLocationManagerDelegate