LocationComponentSettings

data class LocationComponentSettings @JvmOverloads constructor(enabled: Boolean, pulsingEnabled: Boolean, pulsingColor: Int, pulsingMaxRadius: Float, layerAbove: String?, layerBelow: String?, locationPuck: LocationPuck)

Shows a location puck on the map.

Constructors

LocationComponentSettings
Link copied to clipboard
fun LocationComponentSettings(enabled: Boolean = false, pulsingEnabled: Boolean = false, pulsingColor: Int = Color.parseColor("#4A90E2"), pulsingMaxRadius: Float = 10f, layerAbove: String? = null, layerBelow: String? = null, locationPuck: LocationPuck)

Properties

enabled
Link copied to clipboard
var enabled: Boolean = false

Whether the user location is visible on the map.

layerAbove
Link copied to clipboard
var layerAbove: String? = null

Sets the id of the layer that's added above to when placing the component on the map.

layerBelow
Link copied to clipboard
var layerBelow: String? = null

Sets the id of the layer that's added below to when placing the component on the map.

locationPuck
Link copied to clipboard
var locationPuck: LocationPuck

Defines what the customised look of the location puck. Note that direct changes to the puck variables won't have any effect, a new puck needs to be set every time.

pulsingColor
Link copied to clipboard
var pulsingColor: Int

The color of the pulsing circle. Works for 2D location puck only.

pulsingEnabled
Link copied to clipboard
var pulsingEnabled: Boolean = false

Whether the location puck is pulsing on the map. Works for 2D location puck only.

pulsingMaxRadius
Link copied to clipboard
var pulsingMaxRadius: Float = 10f

The maximum radius of the pulsing circle. Works for 2D location puck only. Note: Setting pulsingMaxRadius to LocationComponentConstants.PULSING_MAX_RADIUS_FOLLOW_ACCURACY will set the pulsing circle's maximum radius to follow location accuracy circle. This property is specified in pixels.