LocationSource

Provides locations for the my-location layer.

By default the map uses the platform LocationManager with the GPS and network providers. Set your own source with OpenMapView.setLocationSource, e.g. to use the fused location provider of Play Services or to replay a recorded track.

Types

Link copied to clipboard

Receives new locations from a LocationSource.

Functions

Link copied to clipboard

Starts sending locations to listener. Called when the my-location layer is enabled and the map is shown.

Link copied to clipboard
abstract fun deactivate()

Stops sending locations. Called when the my-location layer is disabled or the map is paused or detached.