centerOnRectArea

external fun centerOnRectArea(area: GeographicArea, zoomLevel: Int = -1, viewRc: Rect? = null, animation: Animation? = Animation(EAnimation.Linear))

Centers WGS of Area center on screen coordinates. Note: Animation can be used only if automatic map rendering is active.

Parameters

area

Geographic area

zoomLevel

Zoom level. When -1 is used, the zoom level is automatically selected so that the entire area is visible on the map.

viewRc

Screen rectangle where area should be centered. The coordinates are relative to view parent screen.

animation

Specifies the animation to be used by the operation.