orbitBy static method

MapCameraUpdate orbitBy(
  1. GeoOrientationUpdate delta,
  2. Point2D origin
)

Creates an update to orbit map camera around a pixel origin by specified geodetic orientation delta.

If the origin cannot be converted to geo coordinates, no update will be applied to the map camera.

Orientation elements that are not valid will be excluded from the update. Resulting bearing values are wrapped around degrees range [0, 360]. Resulting tilt values are clamped inside degrees range [0, 180]. Resulting roll values are wrapped around degrees range [-180, 180].

  • delta Geodetic orientation delta update.

  • origin Screen pixel origin of rotation.

Returns MapCameraUpdate. MapCameraUpdate instance.

Implementation

static MapCameraUpdate orbitBy(GeoOrientationUpdate delta, Point2D origin) => $prototype.orbitBy(delta, origin);