OlScaleLineControlComponent

Scale line control that displays the current map scale. Supports metric, imperial, nautical, and US units.

TypeScriptexample.ts
import { OlScaleLineControlComponent } from '@angular-helpers/openlayers/controls'

# Inputs

InputTypeDefaultDescription
units'metric' | 'imperial' | 'nautical' | 'us'metricUnit system for the scale
barbooleanfalseWhether to show as a scale bar instead of text
stepsnumber4Number of steps for the scale bar
LCP N/A
CLS N/A
INP N/A