setCenterAnimated(coordinate, animated)
Centers the map to the provided coordinate, with optional animation.
Declaration
setCenterAnimated(coordinate: CoordinateData, animated?: boolean): Map;Parameters
- coordinate:
The map’s new Center.
- animate:
A Boolean value that determines whether MapKit JS animates the center change. The default value is
true.
Return Value
Returns the map object.
Discussion
By default, MapKit JS animates the pan.