Interface ScaleControlProps

Implemented by components that display a scale control on the map.

interface ScaleControlProps {
    maxWidth?: number;
    unit?: "imperial" | "metric" | "nautical";
}

Properties

Properties

maxWidth?: number

Maximum length of the scale control on the display in pixels; defaults to 100.

unit?: "imperial" | "metric" | "nautical"

Distance units; defaults to "metric".