sdk-maps-ui-extensions / / CurrentLocationView / 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.


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.