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

updateViewWithLocationInPixels

abstract fun updateViewWithLocationInPixels(zoomLevel: Double, focalPixels: PointF!, currentLocationPixels: PointF!): Unit

Centers on the current user location. Updates visibility of center on current location button using pixel difference between focal and current point. Passed zoom level determines tolerance how much map can be moved in X and Y axis before current location button hides or show again.

Parameters

zoomLevel - Double: current zoom level. If larger than 4.0d then tolerance is set to 40% of screen pixels.

focalPixels - PointF!: the pixel values which corresponds to focal point of the map.

currentLocationPixels - PointF!: pixel values which corresponds to current user location.