leaflet-geosearch
Version:
Adds support for address lookup (a.k.a. geocoding / geoseaching) to Leaflet.
27 lines (26 loc) • 757 B
TypeScript
import { SearchResult } from './providers/provider';
interface ResultListProps {
handleClick: (args: {
result: SearchResult;
}) => void;
classNames?: {
container?: string;
item?: string;
};
}
export default class ResultList {
handleClick?: (args: {
result: SearchResult;
}) => void;
selected: number;
results: SearchResult[];
container: HTMLDivElement;
resultItem: HTMLDivElement;
constructor({ handleClick, classNames }: ResultListProps);
render(results: SearchResult<any>[] | undefined, resultFormat: Function): void;
select(index: number): SearchResult;
count(): number;
clear(): void;
onClick: (event: Event) => void;
}
export {};