MglScaleControl
Render Scale Control
See ScaleControl
typescript
import { MglScaleControl } from '@indoorequal/vue-maplibre-gl';
Props
position
- Type:
ControlPosition
- Required:
false
- Default:
undefined
Position on the map to which the control will be added. Valid values are 'top-left', 'top-right', 'bottom-left', and 'bottom-right'. Defaults to 'bottom-left'.
maxWidth
- Type:
number
- Required:
false
- Default:
100
The maximum length of the scale control in pixels. Default Value 100
unit
- Type:
UnitValue
- Required:
false
- Default:
ScaleControlUnit.METRIC
Set the scale's unit of the distance ('imperial', 'metric' or 'nautical').
Source
See source.