Interface CustomOverlayMarker

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

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

interface CustomOverlayMarker {
    className?: string;
    defs?: boolean;
    fill?: string;
    fillOpacity?: string | number;
    id?: string;
    markerHeight: number;
    markerWidth: number;
    orient: string;
    refX: string;
    refY: string;
    shapeElementAttributes: Record<string, any>;
    shapeElementType: "circle" | "image" | "path" | "polygon" | "polyline";
    stroke?: string;
    strokeDasharray?: string | number;
    strokeDashoffset?: string | number;
    strokeLineCap?: "square" | "butt" | "round";
    strokeLineJoin?: "round" | "miter";
    strokeOpacity?: string | number;
    strokeWidth?: number;
    style?: CSSProperties;
    type: "marker";
    viewBox: string;
}

Properties

className?: string
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
markerHeight: number
markerWidth: number
orient: string
refX: string
refY: string
shapeElementAttributes: Record<string, any>
shapeElementType: "circle" | "image" | "path" | "polygon" | "polyline"
stroke?: string
strokeDasharray?: string | number
strokeDashoffset?: string | number
strokeLineCap?: "square" | "butt" | "round"
strokeLineJoin?: "round" | "miter"
strokeOpacity?: string | number
strokeWidth?: number
style?: CSSProperties
type: "marker"
viewBox: string