@theredhead — Frontend Library - v1.0.0
    Preparing search index...

    A closed polygon rendered as an SVG path on the map.

    interface MapPolygon {
        fillColor?: string;
        fillOpacity?: number;
        highlighted?: boolean;
        highlightFillColor?: string;
        highlightFillOpacity?: number;
        highlightStrokeColor?: string;
        highlightStrokeWidth?: number;
        points: MapLatLng[];
        strokeColor?: string;
        strokeWidth?: number;
    }
    Index

    Properties

    fillColor?: string

    Fill colour. Defaults to var(--mv-accent).

    fillOpacity?: number

    Fill opacity (01). Defaults to 0.2.

    highlighted?: boolean

    When true the highlight colours / widths / opacity are used.

    highlightFillColor?: string

    Fill colour when highlighted.

    highlightFillOpacity?: number

    Fill opacity when highlighted. Defaults to 0.4.

    highlightStrokeColor?: string

    Stroke colour when highlighted.

    highlightStrokeWidth?: number

    Stroke width when highlighted. Defaults to 3.

    points: MapLatLng[]

    Ordered list of geographic vertices. The path is closed automatically.

    strokeColor?: string

    Stroke colour. Defaults to var(--mv-accent).

    strokeWidth?: number

    Stroke width in pixels. Defaults to 2.