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

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()
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: StyleManagerInterface)
onStyleLoading
Link copied to clipboard

Called when a new Style is being loaded.

open override fun onStyleLoading()
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