Function getCameraPositionFromTargetCoordinates

  • Returns the @xyzmaps/harp-geoutils#GeoCoordinates of the camera, given its target coordinates on the map and its zoom, yaw and pitch.

    Parameters

    • targetCoordinates: GeoCoordinates

      Coordinates of the center of the view.

    • distance: number

      Distance to the target in meters.

    • yawDeg: number

      Camera yaw in degrees.

    • pitchDeg: number

      Camera pitch in degrees.

    • projection: Projection

      Active MapView, needed to get the camera fov and map projection.

    • result: Vector3 = ...

      Optional output vector.

    Returns THREE.Vector3

    Camera position in world space.

Generated using TypeDoc