@versatiles/style
    Preparing search index...

    Type Alias LineStyle

    How a line is drawn, for the groups that are one: borders and paths. Takes the place of the plain boolean | number those groups also accept — state: 0.5 and state: { opacity: 0.5 } say the same thing.

    type LineStyle = {
        dashed?: boolean | number[];
        opacity?: boolean | number;
        width?: number;
    }
    Index
    dashed?: boolean | number[]

    true draws the line in the style's own dash pattern for it, false draws it solid, and a list is a dash pattern of your own — the lengths of dashes and gaps in turn, in multiples of the line width, as MapLibre's line-dasharray takes them. The default depends on the line: a country border is solid, the other five are dashed.

    opacity?: boolean | number

    As the plain value: false hides the line, a number in (0, 1] is its opacity. Default true.

    width?: number

    Multiplies the line's width, at every zoom: 0.5 draws it half as wide, 2 twice. The dash follows, since a pattern is in multiples of the width, and so does the casing under a border. Default 1.