RouteShield

sealed class RouteShield

Data structure that holds information about route shield.

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

Inheritors

Types

Link copied to clipboard

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

Link copied to clipboard

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

Properties

Link copied to clipboard

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

Link copied to clipboard
val url: String

used to download the shield

Functions

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

Invoke the method to convert RouteShield.byteArray to Bitmap.