eurostat-map
    Preparing search index...

    Interface ScalebarConfig

    interface ScalebarConfig {
        show?: boolean;
        position?: [number, number];
        units?: string;
        textOffset?: [number, number];
        maxWidth?: number;
        height?: number;
        strokeWidth?: number;
        segmentHeight?: number;
        tickHeight?: number;
    }
    Index

    Properties

    show?: boolean

    Whether to show the scalebar. Replaces showScalebar(true/false).

    position?: [number, number]

    Scalebar anchor position in SVG pixels: [x, y]

    units?: string

    Label suffix, usually " km", but can also be " m", " mi", etc. Note: current implementation still computes values in metres internally.

    textOffset?: [number, number]

    Label offset from the tick position: [x, y]

    maxWidth?: number

    Maximum width of the scalebar in pixels.

    height?: number

    Total height reserved for the scalebar group in pixels.

    strokeWidth?: number

    Stroke width used by scalebar lines.

    segmentHeight?: number

    Height of the horizontal middle segment line.

    tickHeight?: number

    Height of the vertical ticks.