centerOnCoordinates

external fun centerOnCoordinates(coords: Coordinates, zoomLevel: Int = -1, xy: Xy? = null, animation: Animation? = Animation(EAnimation.Linear), mapAngle: Double = Double.MAX_VALUE, viewAngle: Double = Double.MAX_VALUE)

Centers WGS coordinates on screen coordinates. Animation can be used only if automatic map rendering is active.

Parameters

coords

Coordinates

zoomLevel

Zoom level( Use -1 for automatic selection)

xy

Screen position where the coordinates should project.

animation

Specifies the animation to be used by the operation.

mapAngle

Map rotation angle in the range 0.0, 360.0 degrees (Use Double.MAX_VALUE for automatic selection).

viewAngle

MapView angle in the range -90.0, 90.0 degrees (Use Double.MAX_VALUE for automatic selection).


fun centerOnCoordinates(latitude: Double, longitude: Double, zoomLevel: Int = -1, xy: Xy? = null, animation: Animation? = Animation(EAnimation.Linear), mapAngle: Double = Double.MAX_VALUE, viewAngle: Double = Double.MAX_VALUE)

Centers WGS coordinates on screen coordinates. Animation can be used only if automatic map rendering is active.

Parameters

latitude

Latitude.

longitude

Longitude.

zoomLevel

Zoom level( Use -1 for automatic selection)

xy

Screen position where the coordinates should project. The coordinates are relative to view parent screen.

animation

Specifies the animation to be used by the operation.

mapAngle

Map rotation angle in the range 0.0, 360.0 degrees (Use Double.MAX_VALUE for automatic selection).

viewAngle

MapView angle in the range -90.0, 90.0 degrees (Use Double.MAX_VALUE for automatic selection).