centerOnArea

external fun centerOnArea(area: GeographicArea, zoomLevel: Int = -1, xy: Xy? = 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.

xy

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

animation

Specifies the animation to be used by the operation.