MGLErrorCode
enum MGLErrorCode {}
Error constants for the 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
iOS SDK
Examples
SDK JS Reference
- Annotations
- Appendices
- NSExpression(MGLAdditions)
- NSValue(MGLAdditions)
- NSValue(MGLCircleStyleLayerAdditions)
- NSValue(MGLFillExtrusionStyleLayerAdditions)
- NSValue(MGLFillStyleLayerAdditions)
- NSValue(MGLHillshadeStyleLayerAdditions)
- NSValue(MGLLineStyleLayerAdditions)
- NSValue(MGLRasterStyleLayerAdditions)
- NSValue(MGLSymbolStyleLayerAdditions)
- MGLAccountManager
- MGLAnnotationImage
- MGLAnnotationView
- MGLAttributedExpression
- MGLAttributionInfo
- MGLBackgroundStyleLayer
- MGLCircleStyleLayer
- MGLClockDirectionFormatter
- MGLCompassButton
- MGLCompassDirectionFormatter
- MGLComputedShapeSource
- MGLCoordinateFormatter
- MGLDistanceFormatter
- MGLFillExtrusionStyleLayer
- MGLFillStyleLayer
- MGLForegroundStyleLayer
- MGLHeatmapStyleLayer
- MGLHillshadeStyleLayer
- MGLImageSource
- MGLLight
- MGLLineStyleLayer
- MGLLoggingConfiguration
- MGLMapCamera
- MGLMapSnapshot
- MGLMapSnapshotOptions
- MGLMapSnapshotOverlay
- MGLMapSnapshotter
- MGLMapView
- MGLMultiPoint
- MGLMultiPolygon
- MGLMultiPolyline
- MGLNetworkConfiguration
- MGLOfflinePack
- MGLOfflineStorage
- MGLPointAnnotation
- MGLPointCollection
- MGLPolygon
- MGLPolyline
- MGLRasterStyleLayer
- MGLRasterTileSource
- MGLShape
- MGLShapeCollection
- MGLShapeOfflineRegion
- MGLShapeSource
- MGLSource
- MGLStyle
- MGLStyleLayer
- MGLSymbolStyleLayer
- MGLTilePyramidOfflineRegion
- MGLTileSource
- MGLUserLocation
- MGLUserLocationAnnotationView
- MGLUserLocationAnnotationViewStyle
- MGLVectorStyleLayer
- MGLVectorTileSource
- MGLAnnotationVerticalAlignment
- MGLAnnotationViewDragState
- MGLAttributionInfoStyle
- MGLCirclePitchAlignment
- MGLCircleScaleAlignment
- MGLCircleTranslationAnchor
- MGLDEMEncoding
- MGLErrorCode
- MGLFillExtrusionTranslationAnchor
- MGLFillTranslationAnchor
- MGLHillshadeIlluminationAnchor
- MGLIconAnchor
- MGLIconPitchAlignment
- MGLIconRotationAlignment
- MGLIconTextFit
- MGLIconTranslationAnchor
- MGLLightAnchor
- MGLLineCap
- MGLLineJoin
- MGLLineTranslationAnchor
- MGLLoggingLevel
- MGLMapDebugMaskOptions
- MGLOfflinePackState
- MGLOrnamentPosition
- MGLOrnamentVisibility
- MGLRasterResamplingMode
- MGLResourceKind
- MGLSymbolPlacement
- MGLSymbolZOrder
- MGLTextAnchor
- MGLTextJustification
- MGLTextPitchAlignment
- MGLTextRotationAlignment
- MGLTextTransform
- MGLTextTranslationAnchor
- MGLTextWritingMode
- MGLTileCoordinateSystem
- MGLUserTrackingMode
- Formatters
- Geometry
- Location Updates
- Maps
- Offline Maps
- Other Categories
- Other Classes
- Other Constants
- Other Enumerations
- Other Functions
- Other Protocols
- Other Structures
- Other Type Definitions
- Primitive Shapes
- MGLAnnotation
- MGLCalloutView
- MGLCalloutViewDelegate
- MGLCluster
- MGLComputedShapeSourceDataSource
- MGLFeature
- MGLLocationManager
- MGLLocationManagerDelegate
- MGLMapSnapshotterDelegate
- MGLMapViewDelegate
- MGLOfflineRegion
- MGLOfflineStorageDelegate
- MGLOverlay
- MGLStylable
- MGLCoordinateBounds
- MGLCoordinateQuad
- MGLCoordinateSpan
- MGLOfflinePackProgress
- MGLSphericalPosition
- MGLTransition
- Style Content
- Style Layers
- Style Primitives
- Styling the Map
- MGLCoordinateBounds
- MGLCoordinateQuad
- MGLCoordinateSpan
- MGLOfflinePackProgress
- MGLSphericalPosition
- MGLTransition
- User Interaction
- Customizing Fonts
- Information for Style Authors
- Gesture Recognizers
- Info.plist Keys
- Migrating to Expressions
- Predicates and expressions
- Tile URL Templates
- Working with GeoJSON Data