LocationMarkerOptions

data class LocationMarkerOptions(val type: LocationMarkerOptions.Type, @FloatRange(from = 0.0, fromInclusive = false) val markerMagnification: Double = DEFAULT_MAGNIFICATION, val animationDuration: Duration? = null, val customModel: Uri? = null)

Configures options for the location marker which visualizes the users location on the map.

See also: TomTomMap.enableLocationMarker(options: LocationMarkerOptions)

Parameters

type

The type of location marker, eg: chevron, pointer, custom.

markerMagnification

The magnification level to apply to the marker model.

animationDuration

The animation duration between location updates. If this is null, duration will be calculated at runtime.

customModel

The model url to use for a custom marker. eg: "asset://mymodel.glb"

Constructors

Link copied to clipboard
fun LocationMarkerOptions(type: LocationMarkerOptions.Type, @FloatRange(from = 0.0, fromInclusive = false) markerMagnification: Double = DEFAULT_MAGNIFICATION, animationDuration: Duration? = null, customModel: Uri? = null)

Types

Link copied to clipboard
object Companion
Link copied to clipboard
value class Type

Types of the location marker visualization.

Properties

Link copied to clipboard
Link copied to clipboard
val customModel: Uri? = null
Link copied to clipboard
Link copied to clipboard