-
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 moreDeclaration
Swift
public final class MapboxMap : MapboxMapProtocol
extension MapboxMap: MapEventsObservable
-
Undocumented
See moreDeclaration
Swift
public struct CameraState : Hashable
-
Undocumented
See moreDeclaration
Swift
public struct CameraOptions : Hashable
-
Holds information about camera bounds.
See moreDeclaration
Swift
public struct CameraBounds : Hashable
-
Holds options to be used for setting camera bounds.
See moreDeclaration
Swift
public struct CameraBoundsOptions : Hashable
-
Declaration
Swift
public extension CoordinateBounds
-
Undocumented
Declaration
Swift
public typealias Event = MapboxCoreMaps.Event
-
List of supported event types by the MapView and Snapshotter objects, and event data format specification for each event.
See moreDeclaration
Swift
public extension MapEvents
-
Declaration
Swift
extension RenderedQueryOptions
-
Declaration
Swift
extension QueriedFeature
-
Declaration
Swift
extension FeatureExtensionValue
-
Error type that represents the data returned with the
.mapLoadingError
eventThe associated message (which is returned by
See moreerrorDescription
) contains a descriptive error message.Declaration
Swift
public enum MapLoadingError : LocalizedError
-
Describes the projection used to render the map.
Mapbox map supports Mercator and Globe projections.
See moreDeclaration
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
See moreGlobeMapProjection.transitionZoomLevel
for more details what projection will be used depending on current zoom level.Declaration
Swift
@_spi(Experimental) public struct GlobeMapProjection : Codable, Hashable
-
Mercator projection.
Mercator projection description: https://en.wikipedia.org/wiki/Mercator_projection
See moreDeclaration
Swift
@_spi(Experimental) public struct MercatorMapProjection : Codable, Hashable
-
Errors related to MapProjection API
See moreDeclaration
Swift
@_spi(Experimental) public enum MapProjectionError : Error