The ScaleControl shows a scale in meters per pixel.
ScaleControl
The control is positioned using x and {y}. Negative coordinates mean offsets from right and bottom. A width may be provided, which defaults to 100.
x
{y}
width
100
<ScaleControl {...this.state.viewState} width={200} x={10} y={-62}/>
Generated using TypeDoc
The
ScaleControlshows a scale in meters per pixel.The control is positioned using
xand{y}. Negative coordinates mean offsets from right and bottom. Awidthmay be provided, which defaults to100.Example