Classes
The following classes are available globally.
-
The Feature style.
Copyright © 2017 Nexusgeographics All rights reserved.
See also
- CMStyling
- CMLineStyle
- CMPolygonStyle
- CMMarkerStyle
- CMPointStyle
See moreDeclaration
Swift
public class CMFeatureStyle : CMStyling
-
Polygon feature. The Polygon draws filled polygon with three or more coordinates, the first and last coordinate can’t be the same.
Usage example:
See morelet mapController: CMMapController = ... let coordinates: [CMLatLng] = ... let polygon = CMPolygon(name: "My Polygon") polygon.coordinates = coordinates mapController.put(feature: polygon)
Declaration
Swift
public class CMPolygon : CMMultiPoint
-
The style of Marker.
Copyright © 2017 Nexusgeographics All rights reserved.
See also
- CMStyling
- CMFeatureStyle
- CMSinglePointStyle
See moreDeclaration
Swift
public class CMMarkerStyle : CMSinglePointStyle
-
The Suggest service encapsulates suggest queries to cercalia API.
The Suggest works with an APIKEY. Use the following call to configure it:
CMCercalia.instance.apiKey = API_KEY
Resolution of the queries is done asyncronously, so a delegate must be defined
CMSuggest.getInstance().suggest(text, delegate);
Copyright © 2017 Nexusgeographics All rights reserved.
See moreDeclaration
Swift
public class CMSuggest
-
Copyright © 2017 Nexusgeographics All rights reserved.
The City Class.
See also
CMCodeNameDeclaration
Swift
public class City: CMCodeName
-
Copyright © 2017 Nexusgeographics All rights reserved.
The Region Class.
See also
CMCodeNameDeclaration
Swift
public class Region: CMCodeName
-
Marker feature. The Marker draws icon at given point
Usage example:
See morelet mapController: CMMapController = ... let coordinate: CMLatLng = ... let marker = CMMarker(name: "My Marker") marker.coordinate = coordinate mapController.put(feature: marker)
Declaration
Swift
public class CMMarker : CMFeature
-
The font label style. Customize text font.
Copyright © 2017 Nexusgeographics All rights reserved.
See also
CMLabelStyleDeclaration
Swift
public class CMFontStyle : JSONable
-
Map controller.
Usage example:
See morelet mapView: CMMapView = ...; let mapController = CMMapController.instance(mapView) mapController?.create();
Declaration
Swift
public class CMMapController : NSObject, TGMapViewDelegate, CLLocationManagerDelegate
-
Undocumented
-
Undocumented
See more
-
Copyright © 2017 Nexusgeographics All rights reserved.
Declaration
Swift
public class CMUtils
-
The style of polygon.
Copyright © 2017 Nexusgeographics All rights reserved.
See also
- CMStyling
- CMFeatureStyle
- CMMultiPointStyle
See moreDeclaration
Swift
public class CMPolygonStyle : CMMultiPointStyle
-
Polygon feature. The Label draws text label at a given point.
Usage example:
See morelet mapController: CMMapController = ... let coordinate: CMLatLng = ... let label = CMLabel(text: "My label") label.coordinate = coordinate mapController.put(feature: label)
Declaration
Swift
public class CMLabel : CMFeature
-
CameraUpdateFactory used to modify map camera.
See moreDeclaration
Swift
public class CMCameraUpdateFactory
-
Map UISettings.
Usage example:
See more// zoom controls enable let mapController: CMMapController = ... mapController.settings.zoomControls = true
Declaration
Swift
public class CMUISettings : NSObject
-
The style of single point geometry.
Copyright © 2017 Nexusgeographics All rights reserved.
See also
- CMStyling
- CMFeatureStyle
- CMLabelStyle
- CMMarkerStyle
See moreDeclaration
Swift
public class CMSinglePointStyle : CMFeatureStyle
-
Cercalia Configuration:
Example:
See more// Add cercalia api key: CMCercalia.instance.apiKey = API_KEY
Declaration
Swift
public class CMCercalia
-
The style of Point.
Copyright © 2017 Nexusgeographics All rights reserved.
See also
- CMStyling
- CMFeatureStyle
- CMSinglePointStyle
See moreDeclaration
Swift
public class CMPointStyle : CMSinglePointStyle
-
Undocumented
See more
-
Copyright © 2017 Nexusgeographics All rights reserved.
The Sub Region Class.
See also
CMCodeNameDeclaration
Swift
public class SubRegion: CMCodeName
-
Undocumented
See more
-
Undocumented
See more
-
Line feature. The Line draws lines with two or more coordinates.
Usage example:
See morelet mapController: CMMapController = ... let coordinates: [CMLatLng] = ... let line = CMLine(name: "My Line") line.coordinates = coordinates mapController.put(feature: line)
Declaration
Swift
public class CMLine : CMMultiPoint
-
Copyright © 2017 Nexusgeographics All rights reserved.
The Municipality Class.
See also
CMCodeNameDeclaration
Swift
public class Municipality: CMCodeName
-
Declaration
Swift
public class Road: CMCodeName
-
Copyright © 2017 Nexusgeographics All rights reserved.
The Country Class.
See also
CMCodeNameDeclaration
Swift
public class Country: CMCodeName
-
The style of Line.
Copyright © 2017 Nexusgeographics All rights reserved.
See also
- CMStyling
- CMFeatureStyle
- CMMultiPointStyle
See moreDeclaration
Swift
public class CMLineStyle : CMMultiPointStyle
-
The Geocoder service encapsulates reverse geocoding queries to cercalia API.
The Geocoder works with an APIKEY. Use the following call to configure it:
CMCercalia.instance.apiKey = API_KEY
Resolution of the queries is done asyncronously, so a delegate must be defined:
CMGeocoder.getInstance().reverseGeocoding.getFromLocation(latLng: latLng, delegate: self);
Copyright © 2017 Nexusgeographics All rights reserved.
See moreDeclaration
Swift
public class CMGeocoder
-
CameraUpdate defines a camera move.
Usage example:
// Zoom out on a map: let mapController: CMMapController = ... _ = mapController.animateCamera(cameraUpdate: CMCameraUpdateFactory.zoomOut())
Declaration
Swift
public class CMCameraUpdate: NSObject
-
Undocumented
See more
-
Point feature. The Point draws a filled circle at given point.
Usage example:
See morelet mapController: CMMapController = ... let coordinate: CMLatLng = ... let style = CMPointStyle() style.size = ["30px", "30px"] style.color = "red" style.outline = "30px" let point = CMPoint(name: "My Point") point.style = style point.coordinate = coordinate mapController.put(feature: point)
Declaration
Swift
public class CMPoint : CMGeometry
-
The style of multipoint geometry.
Copyright © 2017 Nexusgeographics All rights reserved.
See also
- CMStyling
- CMFeatureStyle
- CMLineStyle
- CMPolygonStyle
See moreDeclaration
Swift
public class CMMultiPointStyle : CMFeatureStyle
-
Feature layer.
Usage example:
// Create layer MapController map = ...; let layer = CMLayer(name:
my_layer
, mapController: map, isBaseLayer: true)// Add feature Marker marker = ...; let success = layer.put(feature: marker)
Copyright © 2017 Nexusgeographics All rights reserved.
See moreDeclaration
Swift
public class CMLayer: NSObject, CMRemoveObserver
-
The basic style.
Copyright © 2017 Nexusgeographics All rights reserved.
See also
- CMLabelStyle
- CMMarkerStyle
- CMLineStyle
- CMPolygonStyle
See moreDeclaration
Swift
public class CMStyling : JSONable
-
The Suggest Geocoding service encapsulates suggestGeocoding queries to cercalia API.
The Suggest Geocoder works with an APIKEY. Use the following call to configure it:
{CMCercalia.instance.apiKey = API_KEY}
Resolution of the queries is done asyncronously, so a delegate must be defined
CMSuggestGeocoding.getInstance().geocoding(address, delegate: self);
Copyright © 2017 Nexusgeographics All rights reserved.
See moreDeclaration
Swift
public class CMSuggestGeocoding