Classes

The following classes are available globally.

  • Polygon feature. The Polygon draws filled polygon with three or more coordinates, the first and last coordinate can’t be the same.

    Usage example:

    let mapController: CMMapController = ...
    let coordinates: [CMLatLng] = ...
    
    let polygon = CMPolygon(name: "My Polygon")
    polygon.coordinates = coordinates
    
    mapController.put(feature: polygon)
    
    See more

    Declaration

    Swift

    public class CMPolygon : CMMultiPoint
  • 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 more

    Declaration

    Swift

    public class CMSuggest
  • Copyright © 2017 Nexusgeographics All rights reserved.

    The City Class.

    See also

    CMCodeName

    Declaration

    Swift

    public class City: CMCodeName
  • Copyright © 2017 Nexusgeographics All rights reserved.

    Cercalia native json class

    See more

    Declaration

    Swift

    public class CMGe:CMObject
  • Copyright © 2017 Nexusgeographics All rights reserved.

    The Region Class.

    See also

    CMCodeName

    Declaration

    Swift

    public class Region: CMCodeName
  • Marker feature. The Marker draws icon at given point

    Usage example:

    let mapController: CMMapController = ...
    let coordinate: CMLatLng = ...
    
    let marker = CMMarker(name: "My Marker")
    marker.coordinate = coordinate
    
    mapController.put(feature: marker)
    
    See more

    Declaration

    Swift

    public class CMMarker : CMFeature
  • Copyright © 2017 Nexusgeographics All rights reserved.

    The Street Properties Class.

    See more

    Declaration

    Swift

    public class StreetProperties: Road.Properties
  • Map controller.

    Usage example:

    let mapView: CMMapView = ...;
    let mapController = CMMapController.instance(mapView)
    mapController?.create();
    
    
    See more

    Declaration

    Swift

    public class CMMapController : NSObject, TGMapViewDelegate, CLLocationManagerDelegate
  • Copyright © 2017 Nexusgeographics All rights reserved.

    Declaration

    Swift

    public class CMUtils
  • Copyright © 2017 Nexusgeographics All rights reserved.

    Cercalia json class with a field: value

    See more

    Declaration

    Swift

    public class CMValue: CMObject
  • Polygon feature. The Label draws text label at a given point.

    Usage example:

    let mapController: CMMapController = ...
    let coordinate: CMLatLng = ...
    
    let label = CMLabel(text: "My label")
    label.coordinate = coordinate
    
    mapController.put(feature: label)
    
    See more

    Declaration

    Swift

    public class CMLabel : CMFeature
  • Map UISettings.

    Usage example:

    // zoom controls enable
    let mapController: CMMapController = ...
    mapController.settings.zoomControls = true
    
    See more

    Declaration

    Swift

    public class CMUISettings : NSObject
  • Cercalia Configuration:

    Example:

    // Add cercalia api key:
    CMCercalia.instance.apiKey = API_KEY
    
    See more

    Declaration

    Swift

    public class CMCercalia
  • Copyright © 2017 Nexusgeographics All rights reserved.

    Cercalia json class with two fields: code and name

    See more

    Declaration

    Swift

    public class CMCodeName: CMObject
  • Copyright © 2017 Nexusgeographics All rights reserved.

    The Sub Region Class.

    See also

    CMCodeName

    Declaration

    Swift

    public class SubRegion: CMCodeName
  • Line feature. The Line draws lines with two or more coordinates.

    Usage example:

    let mapController: CMMapController = ...
    let coordinates: [CMLatLng] = ...
    
    let line = CMLine(name: "My Line")
    line.coordinates = coordinates
    
    mapController.put(feature: line)
    
    See more

    Declaration

    Swift

    public class CMLine : CMMultiPoint
  • Copyright © 2017 Nexusgeographics All rights reserved.

    The Municipality Class.

    See also

    CMCodeName

    Declaration

    Swift

    public class Municipality: CMCodeName
  • Copyright © 2017 Nexusgeographics All rights reserved.

    The Road Class.

    See also

    CMCodeName
    See more

    Declaration

    Swift

    public class Road: CMCodeName
  • Copyright © 2017 Nexusgeographics All rights reserved.

    The Country Class.

    See also

    CMCodeName

    Declaration

    Swift

    public class Country: CMCodeName
  • 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 more

    Declaration

    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
  • Point feature. The Point draws a filled circle at given point.

    Usage example:

    let 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)
    
    See more

    Declaration

    Swift

    public class CMPoint : CMGeometry
  • Copyright © 2017 Nexusgeographics All rights reserved.

    The Road Properties Class.

    See more

    Declaration

    Swift

    public class RoadProperties: Road.Properties
  • Copyright © 2017 Nexusgeographics All rights reserved.

    Cercalia native json class

    See more

    Declaration

    Swift

    public class CMSuggestion:CMObject
  • 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 more

    Declaration

    Swift

    public class CMLayer: NSObject, CMRemoveObserver
  • Copyright © 2017 Nexusgeographics All rights reserved.

    Cercalia json class with two fields: id and value

    See more

    Declaration

    Swift

    public class CMKeyValue: CMObject
  • 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 more

    Declaration

    Swift

    public class CMSuggestGeocoding