Structures

The following structures are available globally.

CameraProperties

  • A type that represents CameraProperties: position, zoom, tilt and rotation

    See more

    Declaration

    Swift

    public struct CameraProperties

CameraUpdate

  • Camera update type.

    See more

    Declaration

    Swift

    public struct CameraUpdate : Equatable
  • A type that represents a set of coordinates and the padding around them.

    See more

    Declaration

    Swift

    public struct FitToCoordinatesOptions : Equatable
  • Defines map visible region as CLLocationCoordinate2D coordinates.

    See more

    Declaration

    Swift

    public struct VisibleRegion

GestureType

  • An OptionSet that defines available gestures for ExclusiveGestureManager.

    See more

    Declaration

    Swift

    public struct GestureType : OptionSet, Hashable
  • MapGestureDisableOption An option set defining the map gestures to be disabled.

    Important

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

    Declaration

    Swift

    public struct MapGestureDisableOption : OptionSet
  • Allows the user to configure the initial parameters of the map.

    See more

    Declaration

    Swift

    public struct MapOptions

StyleContainer

  • Holder struct for main and dark version of the style definition. If darkStyle is not provided, setting TomTomMap.styleMode has no effect.

    See more

    Declaration

    Swift

    public struct StyleContainer
    extension StyleContainer: Equatable

PositionMarkerSize

  • Defines size for chevron or pointer for particular zoom level.

    See more

    Declaration

    Swift

    public struct PositionMarkerSize
    extension PositionMarkerSize: Equatable

Metadata

  • The Metadata is used to carry extra information.

    Important

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

    Declaration

    Swift

    public struct Metadata
    extension Metadata: Codable

TilesDefinition

SourceCollection

CircleOptions

SceneColor

WidthScene

OutlineWidthScene

ReserveCoordinate

CoordinateAlongLine

  • Coordinate along line.

    Important

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

    Declaration

    Swift

    public struct CoordinateAlongLine : Equatable

LinePattern

PatternLengthScene

PatternBeginOffsetScene

LineOptions

MarkerOptions

MarkerLabelOptions

TextureOptions

  • Type that represents texture options.

    See more

    Declaration

    Swift

    public struct TextureOptions : Equatable

PolygonOptions

  • Polygon options.

    Important

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

    Declaration

    Swift

    public struct PolygonOptions : AnnotationOptions, Equatable

RenderedFeature

  • RenderedFeature class

    Important

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

    Declaration

    Swift

    public struct RenderedFeature
  • Rendered features query.

    See more

    Declaration

    Swift

    public struct RenderedFeatureQueryOptions

CoordinateBounds

RouteOptions

  • Class that contains configuration of the route that will be drawn on the map.

    Example:

    let routeOption: RouteOptions = RouteOptions(coordinates: route.geometry)
    guard let mapRoute = try? self.mapView.map.addRoute(routeOption) else { return }
    
    See more

    Declaration

    Swift

    public struct RouteOptions
  • Route section

    Important

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

    Declaration

    Swift

    public struct RouteSection

TrafficIncident