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)

Constructors

Link copied to clipboard
constructor(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

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

Link copied to clipboard
val customModel: Uri? = null

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

Link copied to clipboard

The magnification level to apply to the marker model.

Link copied to clipboard

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