Interface CustomAnnotationPoint

Object describing a point annotation drawn on the map

interface CustomAnnotationPoint {
    backgroundColor?: string;
    backgroundImage?: string;
    backgroundSize?: string;
    data?: Record<string, any>;
    onClick?: ((data) => void);
    size?: number;
    title?: string;
    type: "point";
    x: number;
    y: number;
}

Properties

backgroundColor?: string
backgroundImage?: string
backgroundSize?: string
data?: Record<string, any>

Arbitrary data for use with onClick handler

onClick?: ((data) => void)

Type declaration

    • (data): void
    • Parameters

      • data: Record<string, any>

      Returns void

size?: number
title?: string
type: "point"
x: number
y: number

Generated using TypeDoc