lookAtArea static method

MapCameraUpdate lookAtArea(
  1. GeoBox target
)

Creates an update to look at the given geo-box, preserving current orientation and zooming at the center of viewport.

If geoBox is not valid, no update will be applied to the map camera.

The altitude of the target points is ignored. Any subsequent camera updates and animations will consider the target point as being located on the ground.

  • target Geodetic box that should be visible inside the viewport rectangle.

Returns MapCameraUpdate. MapCameraUpdate instance.

Implementation

static MapCameraUpdate lookAtArea(GeoBox target) => $prototype.lookAtArea(target);