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
CMMapControllerDelegateDeclaration
Swift
public var delegate: CMMapControllerDelegate? -
UISettings for user
Declaration
Swift
public let settings: CMUISettings -
Last user location, nil if myLocationEnabled is
falseDeclaration
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
scenethe 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
scenethe scene path URL
keyPaththe key path
newValuenew value
-
Update map camera according CameraUpdate. Animates the movement of the camera.
Declaration
Swift
public func animateCamera(cameraUpdate: CMCameraUpdate)Parameters
cameraUpdateThe 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
cameraUpdateThe change that should be applied to the camera.
durationTime in seconds to ease to the given position
-
Update map camera according CameraUpdate.
Declaration
Swift
public func moveCamera(cameraUpdate: CMCameraUpdate)Parameters
cameraUpdateThe change that should be applied to the camera.
-
Update map camera according CameraUpdate.
Declaration
Swift
public func getCameraPosition() -> CMCameraPositionReturn 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) -> BoolParameters
featureFeature to add
Return Value
True: success, False: fails
-
Remove feature
Declaration
Swift
public func remove(feature: CMFeature)Parameters
featureFeature to remove
-
Remove Array of feature
Declaration
Swift
public func remove(features: Set<CMFeature>)Parameters
featureArray 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
featureLayer 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
CMMapController Class Reference