import * as L from 'leaflet'; import { AWCLeafletElement } from '../../internal/awc-leaflet.js'; /** * @summary Scale control that shows the scale of the current center of screen in metric (m/km) and imperial (mi/ft) systems. * @documentation https://webcomponents.adeliom.io/?path=/docs/components-map-controls-scale--documentation * @status experimental * @since 1.0 */ export default class AWCMapScaleControl extends AWCLeafletElement { container: L.Map; control: L.Control.Scale; /** * The `position` attribute sets the position of the control (one of the map corners). See control positions. */ position: 'topleft' | 'topright' | 'bottomleft' | 'bottomright'; /** * The `max-width` attribute sets the maximum width of the control in pixels. The width is set dynamically to show round values (e.g. 100, 200, 500). */ maxWidth: number; /** * The `metric` attribute sets whether to show the metric scale line (m/km). */ metric: boolean; /** * The `imperial` attribute sets whether to show the imperial scale line (mi/ft). */ imperial: boolean; /** * The `update-when-idle` attribute sets whether the control is updated on moveend, otherwise it's always up-to-date (updated on move). */ updateWhenIdle: boolean; containerChanged(): void; disconnectedCallback(): void; }