iOS SDK
Tutorials
API Reference
- MGLTileCoordinateSystem
- MGLComputedShapeSource
- MGLSphericalPosition
- MGLUserLocationAnnotationViewStyle
- MGLDistanceFormatter
- MGLStyleLayer
- MGLMapDebugMaskOptions
- MGLSymbolZOrder
- MGLShape
- MGLLineTranslationAnchor
- MGLMultiPoint
- MGLOfflinePack
- Style Primitives
- MGLMultiPolyline
- MGLTextAnchor
- Primitive Shapes
- MGLIconTranslationAnchor
- NSValue(MGLFillStyleLayerAdditions)
- MGLAnnotation
- NSExpression(MGLAdditions)
- MGLTextJustification
- MGLUserLocationAnnotationView
- MGLMultiPolygon
- MGLCircleStyleLayer
- MGLCoordinateSpan
- MGLNetworkConfiguration
- MGLTextWritingMode
- Other Enumerations
- MGLUserLocation
- MGLCalloutView
- MGLAttributedExpression
- MGLImageSource
- MGLOfflinePackProgress
- MGLIconAnchor
- MGLFillStyleLayer
- MGLFillTranslationAnchor
- Appendices
- MGLOfflinePackProgress
- MGLComputedShapeSourceDataSource
- NSValue(MGLLineStyleLayerAdditions)
- MGLStylable
- MGLRasterResamplingMode
- Geometry
- MGLPolygon
- Location Updates
- MGLClockDirectionFormatter
- NSValue(MGLFillExtrusionStyleLayerAdditions)
- MGLCoordinateSpan
- MGLCluster
- MGLErrorCode
- MGLAccountManager
- MGLForegroundStyleLayer
- MGLRasterTileSource
- MGLTextPitchAlignment
- MGLResourceKind
- MGLMapSnapshotterDelegate
- MGLAnnotationImage
- MGLHillshadeStyleLayer
- MGLOrnamentPosition
- MGLAnnotationViewDragState
- MGLDEMEncoding
- MGLSource
- MGLIconPitchAlignment
- MGLCalloutViewDelegate
- MGLVectorStyleLayer
- MGLRasterStyleLayer
- MGLLoggingConfiguration
- MGLLightAnchor
- Other Categories
- MGLTransition
- MGLLocationManager
- MGLLoggingLevel
- MGLTextTranslationAnchor
- MGLCompassButton
- MGLShapeSource
- NSValue(MGLRasterStyleLayerAdditions)
- MGLAnnotationVerticalAlignment
- MGLPolyline
- Maps
- MGLMapCamera
- MGLOfflineStorage
- Other Type Definitions
- MGLSphericalPosition
- MGLShapeCollection
- NSValue(MGLAdditions)
- Style Content
- MGLSymbolPlacement
- MGLTransition
- Other Classes
- MGLPointCollection
- MGLMapViewDelegate
- Style Layers
- MGLMapSnapshotOverlay
- MGLCoordinateQuad
- MGLTextTransform
- MGLOverlay
- MGLUserTrackingMode
- MGLTileSource
- MGLHillshadeIlluminationAnchor
- MGLTextRotationAlignment
- NSValue(MGLHillshadeStyleLayerAdditions)
- MGLOfflinePackState
- Formatters
- MGLLocationManagerDelegate
- MGLAttributionInfoStyle
- MGLBackgroundStyleLayer
- Styling the Map
- MGLCoordinateBounds
- MGLFillExtrusionTranslationAnchor
- Offline Maps
- MGLCoordinateFormatter
- MGLOrnamentVisibility
- MGLStyle
- MGLFeature
- MGLOfflineRegion
- MGLMapView
- MGLShapeOfflineRegion
- Other Structures
- MGLCirclePitchAlignment
- NSValue(MGLCircleStyleLayerAdditions)
- MGLMapSnapshot
- MGLFillExtrusionStyleLayer
- MGLCoordinateQuad
- MGLMapSnapshotOptions
- Other Protocols
- MGLLineCap
- MGLSymbolStyleLayer
- Other Functions
- MGLCircleTranslationAnchor
- MGLLineJoin
- MGLAnnotationView
- MGLCircleScaleAlignment
- MGLPointAnnotation
- MGLMapSnapshotter
- MGLLineStyleLayer
- MGLAttributionInfo
- MGLCompassDirectionFormatter
- MGLCoordinateBounds
- MGLTilePyramidOfflineRegion
- MGLIconRotationAlignment
- MGLIconTextFit
- Other Constants
- NSValue(MGLSymbolStyleLayerAdditions)
- Annotations
- MGLLight
- MGLHeatmapStyleLayer
- MGLOfflineStorageDelegate
- MGLVectorTileSource
- User Interaction
On This Page
MGLErrorCode
enum MGLErrorCode {}
Error constants for the Mapbox SDK.
MGLErrorCodeUnknown
An unknown error occurred.
Declaration
Objective-C
MGLErrorCodeUnknown = -1
Swift
case unknown = -1
MGLErrorCodeNotFound
The resource could not be found.
Declaration
Objective-C
MGLErrorCodeNotFound = 1
Swift
case notFound = 1
MGLErrorCodeBadServerResponse
The connection received an invalid server response.
Declaration
Objective-C
MGLErrorCodeBadServerResponse = 2
Swift
case badServerResponse = 2
MGLErrorCodeConnectionFailed
An attempt to establish a connection failed.
Declaration
Objective-C
MGLErrorCodeConnectionFailed = 3
Swift
case connectionFailed = 3
MGLErrorCodeParseStyleFailed
A style parse error occurred while attempting to load the map.
Declaration
Objective-C
MGLErrorCodeParseStyleFailed = 4
Swift
case parseStyleFailed = 4
MGLErrorCodeLoadStyleFailed
An attempt to load the style failed.
Declaration
Objective-C
MGLErrorCodeLoadStyleFailed = 5
Swift
case loadStyleFailed = 5
MGLErrorCodeSnapshotFailed
An error occurred while snapshotting the map.
Declaration
Objective-C
MGLErrorCodeSnapshotFailed = 6
Swift
case snapshotFailed = 6
MGLErrorCodeSourceIsInUseCannotRemove
Source is in use and cannot be removed
Declaration
Objective-C
MGLErrorCodeSourceIsInUseCannotRemove = 7
Swift
case sourceIsInUseCannotRemove = 7
MGLErrorCodeSourceIdentifierMismatch
Source is in use and cannot be removed
Declaration
Objective-C
MGLErrorCodeSourceIdentifierMismatch = 8
Swift
case sourceIdentifierMismatch = 8
MGLErrorCodeModifyingOfflineStorageFailed
An error occurred while modifying the offline storage database
Declaration
Objective-C
MGLErrorCodeModifyingOfflineStorageFailed = 9
Swift
case modifyingOfflineStorageFailed = 9
MGLErrorCodeSourceCannotBeRemovedFromStyle
Source is invalid and cannot be removed from the style (e.g. after a style change)
Declaration
Objective-C
MGLErrorCodeSourceCannotBeRemovedFromStyle = 10
Swift
case sourceCannotBeRemovedFromStyle = 10
MGLErrorCodeRenderingError
An error occurred while rendering
Declaration
Objective-C
MGLErrorCodeRenderingError = 11
Swift
case renderingError = 11