跳到主要内容

flywave-mapview.mapviewutils.pancameraaroundglobe

Home > @flywave/flywave-mapview > MapViewUtils > panCameraAroundGlobe

MapViewUtils.panCameraAroundGlobe() function

The function doing a pan in the spherical space when MapView's active [[ProjectionType]] is spherical. In other words, the function that rotates the camera around the globe.

Signature:

function panCameraAroundGlobe(mapView: MapView, fromWorld: THREE.Vector3, toWorld: THREE.Vector3): void;

Parameters

Parameter

Type

Description

mapView

MapView

MapView instance.

fromWorld

THREE.Vector3

Start vector representing the scene position of a geolocation.

toWorld

THREE.Vector3

End vector representing the scene position of a geolocation.

Returns:



void