Classes

The following classes are available globally.

  • Class to add a key for the map. The key must be injected before a MapView can be used.

    • Example: “” func application(_: UIApplication, didFinishLaunchingWithOptions _: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { MapsDisplayService.apiKey = “MAP_KEY” […] return true }
    - Important: This is a Public Preview API. It may be changed or removed at any time.
    
    See more

    Declaration

    Swift

    final public class MapsDisplayService

TomTomCopyrightsService

Layer

  • The Layer protocol that represents map layer.

    See more

    Declaration

    Swift

    public class Layer

Style

  • The Style protocol that represents the map style.

    See more

    Declaration

    Swift

    final public class Style

Circle

InnerPolygonOptions

Line

PolygonOverlay

  • A polygon overlay can be built by setting the outer area color and adding inner polygons. Only one inner polygon is supported, but the inner polygons can be nested. Example:

       let innerOptions = InnerPolygonOptions(fillColor: .red
                                          coordinates: coordinates)
    
       innerOptions.nestedPolygonOptions = InnerPolygonOptions(
           fillColor: UIColor.blue,
           coordinates: coordinates
       )
    
       let polygonOptions = PolygonOverlayOptions(outerColor: .green,
                                              innerPolygonOptions: innerOptions)
    
       try? mapView.map.addPolygonOverlay(options: polygonOptions)
    

    }

    Important

    This is a Public Preview API. It may be changed or removed at any time.
    See more

    Declaration

    Swift

    public class PolygonOverlay : Annotation

PolygonOverlayOptions

Marker

Polygon

  • Represents the polygon on the map.

    See more

    Declaration

    Swift

    public class Polygon : Annotation
  • Builder class for RenderedFeatureQuery.

    Important

    This is a Public Preview API. It may be changed or removed at any time.
    See more

    Declaration

    Swift

    public class RenderedFeatureQueryBuilder

Route

  • Class specifying the Route object.

    Important

    This is a Public Preview API. It may be changed or removed at any time.
    See more

    Declaration

    Swift

    public class Route

MapView

  • Use the MapView object to display the map in the view hierarchy.

    See more

    Declaration

    Swift

    open class MapView : UIView

TomTomMap