Skip to content

worldwind-ui API / react-worldwind / useScaleBar

Function: useScaleBar() ​

useScaleBar(options?): ScaleBarState | null

Defined in: react/src/hooks.ts:296

The map scale at the view centre, updated after every frame in which it changed. Null before the first frame.

Parameters ​

options? ​

ScaleBarOptions = {}

Returns ​

ScaleBarState | null

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