- 
                  
                  
An unknown error occurred.
Declaration
Objective-C
MGLErrorCodeUnknown = -1Swift
case unknown = -1 - 
                  
                  
The resource could not be found.
Declaration
Objective-C
MGLErrorCodeNotFound = 1Swift
case notFound = 1 - 
                  
                  
The connection received an invalid server response.
Declaration
Objective-C
MGLErrorCodeBadServerResponse = 2Swift
case badServerResponse = 2 - 
                  
                  
An attempt to establish a connection failed.
Declaration
Objective-C
MGLErrorCodeConnectionFailed = 3Swift
case connectionFailed = 3 - 
                  
                  
A style parse error occurred while attempting to load the map.
Declaration
Objective-C
MGLErrorCodeParseStyleFailed = 4Swift
case parseStyleFailed = 4 - 
                  
                  
An attempt to load the style failed.
Declaration
Objective-C
MGLErrorCodeLoadStyleFailed = 5Swift
case loadStyleFailed = 5 - 
                  
                  
An error occurred while snapshotting the map.
Declaration
Objective-C
MGLErrorCodeSnapshotFailed = 6Swift
case snapshotFailed = 6 - 
                  
                  
Source is in use and cannot be removed
Declaration
Objective-C
MGLErrorCodeSourceIsInUseCannotRemove = 7Swift
case sourceIsInUseCannotRemove = 7 - 
                  
                  
Source is in use and cannot be removed
Declaration
Objective-C
MGLErrorCodeSourceIdentifierMismatch = 8Swift
case sourceIdentifierMismatch = 8 - 
                  
                  
An error occurred while modifying the offline storage database
Declaration
Objective-C
MGLErrorCodeModifyingOfflineStorageFailed = 9Swift
case modifyingOfflineStorageFailed = 9 - 
                  
                  
Source is invalid and cannot be removed from the style (e.g. after a style change)
Declaration
Objective-C
MGLErrorCodeSourceCannotBeRemovedFromStyle = 10Swift
case sourceCannotBeRemovedFromStyle = 10 - 
                  
                  
An error occurred while rendering
Declaration
Objective-C
MGLErrorCodeRenderingError = 11Swift
case renderingError = 11 
              Install in Dash
            
        MGLErrorCode Enumeration Reference