UNPKG

kepler.gl

Version:

kepler.gl is a webgl based application to visualize large scale location data in the browser

39 lines (38 loc) 1.3 kB
import React from 'react'; import { IntlShape } from 'react-intl'; import { Viewport } from '@kepler.gl/types'; /** * Tests if a given query string contains valid coordinates. * @param query The input string to test for coordinates. * @returns A tuple where: * - If valid, returns `[true, longitude, latitude]`. * - If invalid, returns `[false, query]`. */ export declare const testForCoordinates: (query: string) => [true, number, number] | [false, string]; export interface Result { center: [number, number]; place_name: string; bbox?: [number, number, number, number]; text?: string; } export declare type Results = ReadonlyArray<Result>; declare type GeocoderProps = { mapboxApiAccessToken: string; className?: string; limit?: number; timeout?: number; formatItem?: (item: Result) => string; viewport?: Viewport; onSelected: (viewport: Viewport | null, item: Result) => void; onDeleteMarker?: () => void; transitionDuration?: number; pointZoom?: number; width?: number; }; declare type IntlProps = { intl: IntlShape; }; declare const _default: React.FC<import("react-intl").WithIntlProps<GeocoderProps & IntlProps>> & { WrappedComponent: React.ComponentType<GeocoderProps & IntlProps>; }; export default _default;