getOffsetFromOrigin method

Offset getOffsetFromOrigin(
  1. LatLng pos
)

Calculates the Offset from the pos to this camera's pixelOrigin.

Implementation

Offset getOffsetFromOrigin(LatLng pos) =>
    (project(pos) - pixelOrigin).toOffset();