RouteShield

sealed class RouteShield

Data structure that holds information about route shield.

To convert the returned SVG ByteArray to a Bitmap use toBitmap.

Types

Link copied to clipboard
class MapboxDesignedShield : RouteShield

Type representation of RouteShield which is to be used when requesting mapbox designed shields.

Link copied to clipboard
class MapboxLegacyShield : RouteShield

Type representation of RouteShield which is to be used when requesting mapbox legacy shields.

Functions

Link copied to clipboard
abstract fun toBitmap(resources: Resources, desiredHeight: Int? = null): Bitmap?

Invoke the method to convert RouteShield.byteArray to Bitmap.

Properties

Link copied to clipboard
val byteArray: ByteArray

shield image returned in the form of svg wrapped in a ByteArray

Link copied to clipboard
val url: String

used to download the shield

Inheritors

Link copied to clipboard
Link copied to clipboard