Skip to content

worldwind-ui API / worldwind-kit / trackScreenPosition

Function: trackScreenPosition() ​

trackScreenPosition(worldWind, wwd, position, listener): Unsubscribe

Defined in: kit/src/screen.ts:54

Calls listener after every frame in which the screen position of position changed, and once after the next frame. Used by popups and tooltips to follow the globe.

Parameters ​

worldWind ​

WorldWindStatic

wwd ​

WWWorldWindow

position ​

LatLonAlt

listener ​

(point) => void

Returns ​

Unsubscribe

MIT licensed. Not affiliated with NASA; WorldWind is NASA's open-source virtual globe.