setCenterAnimated(coordinate, animated)
Centers the map to the provided coordinate, with optional animation.
Declaration
setCenterAnimated(coordinate: Coordinate, 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.
See Also
Manipulating the visible portion of the map
centerregionsetRegionAnimated(region, animated)rotationsetRotationAnimated(degrees, animated)visibleMapRectsetVisibleMapRectAnimated(mapRect, animated)cameraBoundarysetCameraBoundaryAnimated(mapRect, animated)CameraBoundaryDescriptioncameraDistancesetCameraDistanceAnimated(distance, animated)cameraZoomRangesetCameraZoomRangeAnimated(cameraZoomRange, animated)