IHeatmapLayerProps

Props for the HeatmapLayer component. Extends IHeatmapConfiguration with additional layer-specific properties.

Definition

export interface IHeatmapLayerProps extends Omit<IHeatmapConfiguration, 'values' | 'imageCoordinates'> {
    /**
     * The heatmap data points with coordinates and intensity values
     */
    points: IHeatmapPoint[];

    /**
     * Minimum opacity (0-1, default: 0.5)
     */
    minOpacity?: number;

    /**
     * Maximum zoom level for the heatmap
     */
    maxZoom?: number;

    /**
     * Function to convert from image coordinates to map coordinates (if using static images)
     * This replaces the imageCoordinates boolean from IHeatmapConfiguration
     */
    coordinateConverter?: (lat: number, lng: number) => [number, number];
}

Usage

Examples

Last updated