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
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
The model url to use for a custom marker. The only supported format is glTF. The following file extensions are allowed: gltf (text-based) and glb (binary-based). The file must be stored locally on the device, eg: "asset://", or in the file directory - "file://".
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.