sdk-maps / com.tomtom.online.sdk.map / TomtomMap / setMyLocationEnabled

setMyLocationEnabled

abstract fun setMyLocationEnabled(enabled: Boolean): Unit

Enables or disables the my-location layer. While enabled and the location is available, the my-location layer continuously draws an indication of a user's current location and bearing, and displays UI controls that allow a user to interact with their location (for example, to enable or disable camera tracking of their location and bearing). In order to use the my-location-layer feature, the SDK request permission for either Manifest.permission#ACCESS_COARSE_LOCATION or Manifest.permission#ACCESS_FINE_LOCATION unless you have set a custom location source.

Parameters

enabled - Boolean: