Skip to content

worldwind-ui API / worldwind-kit / trackScaleBar

Function: trackScaleBar() ​

trackScaleBar(worldWind, wwd, listener, options?): Unsubscribe

Defined in: kit/src/scale.ts:115

Calls listener now and after every frame in which the scale changed (zooming, tilting, resizing, switching projection).

Parameters ​

worldWind ​

WorldWindStatic

wwd ​

WWWorldWindow

listener ​

(state) => void

options? ​

ScaleBarOptions = {}

Returns ​

Unsubscribe

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