Interface CustomOverlayImage

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

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

interface CustomOverlayImage {
    animate?: SVGAttributes<SVGAnimateElement>;
    animateMotion?: SVGAttributes<SVGAnimateMotionElement>;
    className?: string;
    data?: Record<string, any>;
    defs?: boolean;
    height: number;
    href: string;
    id?: string;
    mpath?: SVGMPathElement;
    onClick?: ((data) => void);
    style?: CSSProperties;
    type: "image";
    width: number;
    x?: number;
    y?: number;
}

Properties

animate?: SVGAttributes<SVGAnimateElement>
animateMotion?: SVGAttributes<SVGAnimateMotionElement>
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

height: number
href: string
id?: string
mpath?: SVGMPathElement
onClick?: ((data) => void)

Type declaration

    • (data): void
    • Parameters

      • data: Record<string, any>

      Returns void

style?: CSSProperties
type: "image"
width: number
x?: number
y?: number