• MapboxMap provides access to the map model, including the camera, style, observable map events, and querying rendered features. Obtain the MapboxMap instance for a MapView via MapView.mapboxMap.

    Note: MapboxMap should only be used from the main thread.

    See more

    Declaration

    Swift

    public final class MapboxMap : MapboxMapProtocol
    extension MapboxMap: MapEventsObservable
  • Undocumented

    See more

    Declaration

    Swift

    public struct CameraState : Hashable
  • Undocumented

    See more

    Declaration

    Swift

    public struct CameraOptions : Hashable
  • Holds information about camera bounds.

    See more

    Declaration

    Swift

    public struct CameraBounds : Hashable
  • Holds options to be used for setting camera bounds.

    See more

    Declaration

    Swift

    public struct CameraBoundsOptions : Hashable
  • Declaration

    Swift

    public extension CoordinateBounds
  • Undocumented

    Declaration

    Swift

    public typealias Event = MapboxCoreMaps.Event
  • Type of errors thrown by the MapboxMap APIs.

    See more

    Declaration

    Swift

    public struct MapError : LocalizedError, CoreErrorRepresentable
  • Error type that represents the data returned with the .mapLoadingError event

    The associated message (which is returned by errorDescription) contains a descriptive error message.

    See more

    Declaration

    Swift

    public enum MapLoadingError : LocalizedError
  • Describes the projection used to render the map.

    Mapbox map supports Mercator and Globe projections.

    See more

    Declaration

    Swift

    @_spi(Experimental)
    public enum MapProjection : Codable, Hashable
  • Globe projection is a custom map projection mode for rendering the map wrapped around a full 3D globe. Conceptually it is the undistorted and unskewed “ground truth” view of the map that preserves true proportions between different areas of the map.

    Some layers are not supported when map is in Globe projection:

    • custom
    • fill extrusion
    • location indicator

    If Globe projection is set it will be switched automatically to Mercator projection when passing GlobeMapProjection.transitionZoomLevel during zooming in.

    See GlobeMapProjection.transitionZoomLevel for more details what projection will be used depending on current zoom level.

    See more

    Declaration

    Swift

    @_spi(Experimental)
    public struct GlobeMapProjection : Codable, Hashable
  • Mercator projection.

    Mercator projection description: https://en.wikipedia.org/wiki/Mercator_projection

    See more

    Declaration

    Swift

    @_spi(Experimental)
    public struct MercatorMapProjection : Codable, Hashable
  • Errors related to MapProjection API

    See more

    Declaration

    Swift

    @_spi(Experimental)
    public enum MapProjectionError : Error