flywave-mapview.mapview.getscreenposition
Home > @flywave/flywave-mapview > MapView > getScreenPosition
MapView.getScreenPosition() method
Returns the screen position of the given geo or world position.
Signature:
getScreenPosition(pos: GeoCoordLike | THREE.Vector3): THREE.Vector2 | undefined;
Parameters
Parameter | Type | Description |
|---|---|---|
pos | GeoCoordLike | THREE.Vector3 | The position as a or THREE.Vector3 world position. |
Returns:
THREE.Vector2 \| undefined
The screen position in CSS/client coordinates (no pixel ratio applied) or `undefined`<!-- -->.