@independo/leaflet-independo-maps
Version:
Leaflet plugin for displaying points of interest as pictograms.
28 lines (27 loc) • 627 B
TypeScript
export interface Pictogram {
/**
* A unique identifier for the pictogram.
* This ID is provided by the underlying data source (e.g., Global Symbols API).
*/
id: string;
/**
* URL of the pictogram.
*/
url: string;
/**
* Text to display below the pictogram.
*/
displayText: string;
/**
* ARIA label for the pictogram.
*/
ariaLabel?: string;
/**
* Description of the pictogram.
*/
description?: string;
/**
* A flexible container for any additional metadata from the data source.
*/
metadata?: Record<string, any>;
}