sdk-maps-ui-extensions / com.tomtom.online.sdk.map.ui.currentlocation / CurrentLocationView / updateViewWithMapLocation

updateViewWithMapLocation

abstract fun updateViewWithMapLocation(userLocation: Location!, focalLatitude: Double, focalLongitude: Double): Unit

Centers on the current user location. Uses the distance between user location and focal latitude and longitude to determine when button should be shown or hidden. The epsilon is set to 0.0001. For larger zooms use CurrentLocationView#updateViewWithLocationInPixels(double, PointF, PointF) instead.

Parameters

userLocation - Location!: the user geo location which is a centering point.

focalLatitude - Double: the focal latitude value which is the latitude distance from userLocation.

focalLongitude - Double: the focal longitude value which is the longitude distance from userLocation.