Interface CustomOverlayPolygon

Object describing an SVG <polygon> element drawn on the map

https://developer.mozilla.org/en-US/docs/Web/SVG/Element/polygon

interface CustomOverlayPolygon {
    animate?: SVGAttributes<SVGAnimateElement>;
    className?: string;
    data?: Record<string, any>;
    defs?: boolean;
    fill?: string;
    fillOpacity?: string | number;
    id?: string;
    markerEnd: string;
    markerMid: string;
    markerStart: string;
    onClick?: ((data) => void);
    points: number[];
    stroke?: string;
    strokeDasharray?: string | number;
    strokeDashoffset?: string | number;
    strokeLineJoin?: "round" | "miter";
    strokeOpacity?: string | number;
    strokeWidth?: number;
    style?: CSSProperties;
    type: "polygon";
}

Properties

animate?: SVGAttributes<SVGAnimateElement>
className?: string
data?: Record<string, any>

Arbitrary data for use with onClick handler

defs?: boolean

true will result in the element being wrapped in a <defs> (default: false)

https://developer.mozilla.org/en-US/docs/Web/SVG/Element/defs

fill?: string
fillOpacity?: string | number
id?: string
markerEnd: string
markerMid: string
markerStart: string
onClick?: ((data) => void)

Type declaration

    • (data): void
    • Parameters

      • data: Record<string, any>

      Returns void

points: number[]
stroke?: string
strokeDasharray?: string | number
strokeDashoffset?: string | number
strokeLineJoin?: "round" | "miter"
strokeOpacity?: string | number
strokeWidth?: number
style?: CSSProperties
type: "polygon"

Generated using TypeDoc