MBMMapLoadingError
@interface MBMMapLoadingError : NSObject
Describes an error that has occurred while loading the map
. The type
property
defines what resource could not be loaded, and the message
property will contain
a descriptive error message.
- In case of
MapLoadingErrorType.Source
orMapLoadingErrorType.Tile
loading errors, thesourceId
property will contain the source’s name. - In case of
MapLoadingErrorType.Tile
loading errors,tileId
will contain theCanonicalTileID
of the tile.
-
Unavailable
Undocumented
Declaration
Objective-C
- (nonnull instancetype)init NS_UNAVAILABLE;
-
Unavailable
Undocumented
Declaration
Objective-C
+ (nonnull instancetype)new NS_UNAVAILABLE;
-
Undocumented
Declaration
Objective-C
- (nonnull instancetype)initWithType:(MBMMapLoadingErrorType)type message:(nonnull NSString *)message sourceId:(nullable NSString *)sourceId tileId:(nullable MBMCanonicalTileID *)tileId timestamp:(nonnull NSDate *)timestamp;
Swift
init(type: MapLoadingErrorType, message: String, sourceId: String?, tileId: MBMCanonicalTileID?, timestamp: Date)
-
The type of an error.
Declaration
Objective-C
@property (nonatomic, readonly) MBMMapLoadingErrorType type;
Swift
var type: MapLoadingErrorType { get }
-
Descriptive error message.
Declaration
Objective-C
@property (nonatomic, copy, readonly, nonnull) NSString *message;
Swift
var message: String { get }
-
Identifier of a source. Non-null when the type is
MapLoadingErrorType.Source
orMapLoadingErrorType.Tile
.Declaration
Objective-C
@property (nonatomic, copy, readonly, nullable) NSString *sourceId;
Swift
var sourceId: String? { get }
-
The canonical tile id of a tile. Non-null when the type is
MapLoadingErrorType.Tile
.Declaration
Objective-C
@property (nonatomic, readonly, nullable) MBMCanonicalTileID *tileId;
Swift
var tileId: MBMCanonicalTileID? { get }
-
The timestamp of the
MapLoadingError
event.Declaration
Objective-C
@property (nonatomic, readonly, nonnull) NSDate *timestamp;
Swift
var timestamp: Date { get }