Skip to content

worldwind-ui API / worldwind-kit / ScaleBarState

Interface: ScaleBarState ​

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

Properties ​

label ​

label: string

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

500 m, 2 km, 5 mi, 10 nmi, ...


meters ​

meters: number

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

Ground distance the bar represents, in metres.


metersPerPixel ​

metersPerPixel: number

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

Ground metres covered by one CSS pixel at the centre of the view.


pixels ​

pixels: number

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

Bar length in CSS pixels.


units ​

units: ScaleUnits

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

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