UNPKG

leaflet-labels

Version:

Leaflet multiple data source labels

25 lines (22 loc) 499 B
/** * Tag data type */ export declare interface LabelType { typeNmae: string; value: string; dir: number; } /** * the return object of the instance */ export declare interface MarkerLabels { marker: L.Marker<any>; labels: L.Marker<any>; alternate: () => void; removeAlternate: () => void; } /** * Returns the created instance. Called by external custom * templates. */ export declare function useMarkerLabels(latLng: [number, number], labelData: LabelType[]): MarkerLabels;