sdk-maps / com.tomtom.online.sdk.map.style.sources / ImageSource

ImageSource

interface ImageSource : Source

An interface that represents the image source.

Functions

setCoordinates

abstract fun setCoordinates(coordinates: MutableList<LatLng!>): Unit

Sets the image coordinates (the latitude and longitude of the four corners of the image).

setImage

abstract fun setImage(bitmap: Bitmap): Unit

Updates the source image to a bitmap.

abstract fun setImage(drawable: Drawable): Unit

Updates the source image to a bitmap obtained from drawable.

setUrl

abstract fun setUrl(url: String): Unit

Sets the URL of image for the source.

Inherited Functions

getId

abstract fun getId(): String

Returns the ID (a human-readable name) of the source.