UNPKG

@geogirafe/lib-geoportal

Version:

GeoGirafe is a flexible application to build online geoportals.

26 lines (25 loc) 798 B
import { Coordinate } from 'ol/coordinate'; import { Extent } from 'ol/extent'; type GeometryResult = { type: 'Point' | 'MultiPoint' | 'LineString' | 'MultiLineString' | 'Polygon' | 'MultiPolygon'; coordinates: Coordinate | Coordinate[] | Coordinate[][] | Coordinate[][][]; }; type GeometryCollectionResult = { type: 'GeometryCollection'; geometries: GeometryCollectionResult[] | GeometryResult[]; }; declare class SearchResult { bbox?: Extent; geometry?: GeometryResult | GeometryCollectionResult; properties?: { label: string; layer_name: string; actions: { action: string; data: string; }[]; }; selected: boolean; } export type { GeometryResult, GeometryCollectionResult }; export default SearchResult;