Contents

setVisibleMapRectAnimated(mapRect, animated)

Changes the map’s visible map rectangle to the specified map rectangle.

Declaration

setVisibleMapRectAnimated(mapRect: MapRect, animated?: boolean): Map;

Parameters

  • mapRect:

    The map’s new visible area, in map units.

  • animate:

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

Return Value

Returns the map object.

Discussion

By default, MapKit JS animates the change.

See Also

Manipulating the visible portion of the map