Structures

The following structures are available globally.

  • Camera update type.

    Important

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

    Declaration

    Swift

    public struct CameraUpdate : Equatable
  • A type that represents CameraProperties: position, zoom, tilt and rotation

    Important

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

    Declaration

    Swift

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

    Important

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

    Declaration

    Swift

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

    Important

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

    Declaration

    Swift

    public struct VisibleRegion

GestureType

  • An OptionSet that defines available gestures for ExclusiveGestureManager.

    Important

    This is a Public Preview API. It may be changed or removed at any time.
    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, Hashable
  • Allows the user to configure the initial parameters of the map.

    Important

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

    Declaration

    Swift

    public struct MapOptions

StyleContainer

  • Allows main and dark styles to be set. If dark style is not provided, setting Map.styleMode has no effect.

    Important

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

    Declaration

    Swift

    public struct StyleContainer
    extension StyleContainer: Equatable

PositionMarkerSize

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

    Important

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

    Declaration

    Swift

    public struct PositionMarkerSize
    extension PositionMarkerSize: Equatable

Metadata

  • The Metadata is used to carry extra information.

    Declaration

    Swift

    public struct Metadata : Codable

TilesDefinition

SourceCollection

  • The SourceCollection

    Important

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

    Declaration

    Swift

    public struct SourceCollection : Decodable

CircleOptions

  • A type that represents circle options.

    Important

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

    Declaration

    Swift

    public struct CircleOptions : AnnotationOptions, Equatable

SceneColor

  • Scene color.

    Important

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

    Declaration

    Swift

    public struct SceneColor : Equatable

WidthScene

  • Width scene.

    Important

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

    Declaration

    Swift

    public struct WidthScene : Equatable

OutlineWidthScene

  • Outline width scene.

    Important

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

    Declaration

    Swift

    public struct OutlineWidthScene : Equatable

ReserveCoordinate

CoordinateAlongLine

LinePattern

  • Line pattern.

    Important

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

    Declaration

    Swift

    public struct LinePattern : Equatable

PatternLengthScene

  • Pattern length scene.

    Important

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

    Declaration

    Swift

    public struct PatternLengthScene : Equatable

PatternBeginOffsetScene

  • Pattern begin offset scene.

    Important

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

    Declaration

    Swift

    public struct PatternBeginOffsetScene : Equatable

LineOptions

  • Line options.

    Important

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

    Declaration

    Swift

    public struct LineOptions : AnnotationOptions, Equatable

MarkerOptions

  • A type that represents marker options.

    Important

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

    Declaration

    Swift

    public struct MarkerOptions : AnnotationOptions, Equatable

MarkerLabelOptions

TextureOptions

  • Type that represents texture options.

    Important

    This is a Public Preview API. It may be changed or removed at any time.
    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.

    Important

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

    Declaration

    Swift

    public struct RenderedFeatureQuery

CoordinateBounds

  • The coordinate region.

    See more

    Declaration

    Swift

    public struct CoordinateBounds
  • Route instruction.

    Important

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

    Declaration

    Swift

    public struct RouteInstruction

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 }
    

    Important

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

    Declaration

    Swift

    public struct RouteOptions

RouteSegment

  • Route segment.

    Important

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

    Declaration

    Swift

    public struct RouteSegment

TrafficIncident

  • Represents traffic incident details.

    Important

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

    Declaration

    Swift

    public struct TrafficIncident : Decodable