orbitBy static method
- GeoOrientationUpdate delta,
- 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].
-
deltaGeodetic orientation delta update. -
originScreen pixel origin of rotation.
Returns MapCameraUpdate. MapCameraUpdate instance.
Implementation
static MapCameraUpdate orbitBy(GeoOrientationUpdate delta, Point2D origin) => $prototype.orbitBy(delta, origin);