Contents

setCameraDistanceAnimated(distance, animated)

Changes the map’s camera distance with an animated transition.

Declaration

setCameraDistanceAnimated(distance: number, animated?: boolean): Map;

Parameters

  • distance:

    The altitude of the camera from the center of the map. It’s value needs to be greater than or equal to 0.

  • animate:

    A Boolean value that determines whether MapKit JS animates the visible area change. The default value is true.

Mentioned in

Return Value

Returns the containing map instance object.

Discussion

By default, the change of distance animates.

See Also

Manipulating the visible portion of the map