LocationComponentPluginImpl

Default implementation of the LocationComponentPlugin, it renders the configured location puck to the user's current location.

Constructors

LocationComponentPluginImpl
Link copied to clipboard
fun LocationComponentPluginImpl()

Functions

addOnIndicatorBearingChangedListener
Link copied to clipboard

Adds a listener that gets invoked when indicator bearing changes.

open override fun addOnIndicatorBearingChangedListener(listener: OnIndicatorBearingChangedListener)
addOnIndicatorPositionChangedListener
Link copied to clipboard

Adds a listener that gets invoked when indicator position changes.

open override fun addOnIndicatorPositionChangedListener(listener: OnIndicatorPositionChangedListener)
bind
Link copied to clipboard

Bind the ViewPlugin with current map context. This will create a View that will be added to the MapView.

open override fun bind(context: Context, attrs: AttributeSet?, pixelRatio: Float)
cleanup
Link copied to clipboard
open override fun cleanup()
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
getLocationProvider
Link copied to clipboard

Get the current LocationProvider under usage with the LocationComponentPlugin.

open override fun getLocationProvider(): LocationProvider?
getSettings
Link copied to clipboard
open override fun getSettings(): LocationComponentSettings
hashCode
Link copied to clipboard
open override fun hashCode(): Int
initialize
Link copied to clipboard
open override fun initialize()
isLocatedAt
Link copied to clipboard

Check whether the rendered location puck is on the given point.

open override fun isLocatedAt(point: Point, listener: PuckLocatedAtPointListener)
onBearingUpdated
Link copied to clipboard

Called whenever the bearing is updated.

open override fun onBearingUpdated(vararg bearing: DoubleArray, options: ValueAnimator.() -> Unit?)
onDelegateProvider
Link copied to clipboard

Provides all map delegate instances.

open override fun onDelegateProvider(delegateProvider: MapDelegateProvider)
onLocationUpdated
Link copied to clipboard

Called whenever the location is updated.

open override fun onLocationUpdated(vararg location: Array<out Point>, options: ValueAnimator.() -> Unit?)

Update ValueAnimator options that will be used to animate between bearing Double updates by default. This will apply to all upcoming updates.

open override fun onPuckBearingAnimatorDefaultOptionsUpdated(options: ValueAnimator.() -> Unit)

Update ValueAnimator options that will be used to animate between Point updates by default. This will apply to all upcoming updates.

open override fun onPuckLocationAnimatorDefaultOptionsUpdated(options: ValueAnimator.() -> Unit)
onStart
Link copied to clipboard

Called whenever activity's/fragment's lifecycle is entering a "started" state.

open override fun onStart()
onStop
Link copied to clipboard

Called whenever activity's/fragment's lifecycle is entering a "stopped" state.

open override fun onStop()
onStyleChanged
Link copied to clipboard

Called when a new Style is loaded.

open override fun onStyleChanged(styleDelegate: StyleInterface)
removeOnIndicatorBearingChangedListener
Link copied to clipboard

Removes a listener that gets invoked when indicator bearing changes.

open override fun removeOnIndicatorBearingChangedListener(listener: OnIndicatorBearingChangedListener)

Removes a listener that gets invoked when indicator position changes.

open override fun removeOnIndicatorPositionChangedListener(listener: OnIndicatorPositionChangedListener)
setLocationProvider
Link copied to clipboard

Set the LocationProvider, it will replace the default location provider provided by the LocationComponentPlugin.

open override fun setLocationProvider(locationProvider: LocationProvider)
toString
Link copied to clipboard
open override fun toString(): String
updateSettings
Link copied to clipboard
open override fun updateSettings(block: LocationComponentSettings.() -> Unit)

Properties

enabled
Link copied to clipboard
open override var enabled: Boolean
layerAbove
Link copied to clipboard
open override var layerAbove: String?
layerBelow
Link copied to clipboard
open override var layerBelow: String?
locationPuck
Link copied to clipboard
open override var locationPuck: LocationPuck
pulsingColor
Link copied to clipboard
open override var pulsingColor: Int
pulsingEnabled
Link copied to clipboard
open override var pulsingEnabled: Boolean
pulsingMaxRadius
Link copied to clipboard
open override var pulsingMaxRadius: Float