setPrincipalPoint static method

MapCameraUpdate setPrincipalPoint(
  1. Point2D principalPoint
)

Creates an update to change the map camera's principal point (where the view vector intersects the image plane - default is the center of the view).

Point values are in screen coordinates and values that fall outside of the viewport, are clamped. (0,0) is top left of the viewport.

  • principalPoint Principal point in absolute viewport pixel coordinates.

Returns MapCameraUpdate. MapCameraUpdate instance.

Implementation

static MapCameraUpdate setPrincipalPoint(Point2D principalPoint) => $prototype.setPrincipalPoint(principalPoint);