MapLoadingError

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` or `MapLoadingErrorType.Tile` loading errors, the `sourceId` property will contain the source's name. For the GeoJSON data loading and parsing errors, `message` will contain the following JSON string: {"dataId": "dataId", "message": "errorMessage" } - In case of `MapLoadingErrorType.Tile` loading errors, `tileId` will contain the `CanonicalTileID` of the tile.

Constructors

Link copied to clipboard
open fun MapLoadingError(@NonNull type: MapLoadingErrorType, @NonNull message: String, @Nullable sourceId: String, @Nullable tileId: CanonicalTileID, @NonNull timestamp: Date)

Functions

Link copied to clipboard
open fun equals(object: Any): Boolean
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
open fun toString(): String

Properties

Link copied to clipboard
@NonNull
@get:NonNull
val message: String
Link copied to clipboard
@Nullable
@get:Nullable
val sourceId: String
Link copied to clipboard
@Nullable
@get:Nullable
val tileId: CanonicalTileID
Link copied to clipboard
@NonNull
@get:NonNull
val timestamp: Date
Link copied to clipboard
@NonNull
@get:NonNull
val type: MapLoadingErrorType

Extensions

Link copied to clipboard

Extension function to map the newly introduced event to the legacy one.