UserLocationConfig

data class UserLocationConfig(val isVisible: Boolean? = null, val isHeadingEnabled: Boolean? = null, val isAutoZoomEnabled: Boolean? = null, val anchor: UserLocationConfig.Anchor? = null, val arrow: UserLocationConfig.LocationIcon? = null, val pin: UserLocationConfig.LocationIcon? = null, val accuracy: UserLocationConfig.LocationAccuracy? = null)

Config for UserLocationLayer

Constructors

Link copied to clipboard
constructor(isVisible: Boolean? = null, isHeadingEnabled: Boolean? = null, isAutoZoomEnabled: Boolean? = null, anchor: UserLocationConfig.Anchor? = null, arrow: UserLocationConfig.LocationIcon? = null, pin: UserLocationConfig.LocationIcon? = null, accuracy: UserLocationConfig.LocationAccuracy? = null)

Types

Link copied to clipboard
data class Anchor(val normal: PointF, val course: PointF)
Link copied to clipboard
data class LocationAccuracy(var strokeColor: Color = DefaultStrokeColor, var strokeWidth: Float = DefaultStrokeWidth, var fillColor: Color = DefaultFillColor, var isGeodesic: Boolean = DefaultGeodesic)
Link copied to clipboard
data class LocationIcon(val image: ImageProvider, val style: IconStyle = IconStyle(), val direction: Float? = null, val opacity: Float = 1.0f)

Properties

Link copied to clipboard
Link copied to clipboard

Sets the anchor to the specified position in pixels and enables Anchor mode with UserLocationLayer.setAnchor

Link copied to clipboard
Link copied to clipboard

Auto zoom.

Link copied to clipboard

Heading mode.

Link copied to clipboard
val isVisible: Boolean? = null

User location visibility.

Link copied to clipboard