flywave-mapview.mapviewutils.getgeotargetfromcamera
Home > @flywave/flywave-mapview > MapViewUtils > getGeoTargetFromCamera
MapViewUtils.getGeoTargetFromCamera() function
Warning: This API is now obsolete.
This function is for internal use only and will be removed in the future. Use MapView.worldTarget instead.
Calculate target (focus) point geo-coordinates for given camera.
Signature:
function getGeoTargetFromCamera(camera: THREE.Camera, projection: Projection, elevation?: number): GeoCoordinates | null;
Parameters
Parameter | Type | Description |
|---|---|---|
camera | THREE.Camera | The camera looking on target point. |
projection | Projection | The geo-projection used. |
elevation | number | (Optional) Optional elevation above (or below) sea level measured in world units. |
Returns:
GeoCoordinates \| null