LocationMarkerOptions

data class LocationMarkerOptions(    val type: LocationMarkerType,     val markerMagnification: Double = LocationMarker.DEFAULT_MAGNIFICATION,     val animationDuration: Duration? = null,     val customModel: String? = 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"

Important: This is a Public Preview API. It may be changed or removed at any time.

Constructors

Link copied to clipboard
fun LocationMarkerOptions(    type: LocationMarkerType,     markerMagnification: Double = LocationMarker.DEFAULT_MAGNIFICATION,     animationDuration: Duration? = null,     customModel: String? = null)

Properties

Link copied to clipboard
val animationDuration: Duration? = null
Link copied to clipboard
val customModel: String? = null
Link copied to clipboard
val markerMagnification: Double
Link copied to clipboard
val type: LocationMarkerType