UNPKG

@geogirafe/lib-geoportal

Version:

GeoGirafe is a flexible application to build online geoportals.

38 lines (37 loc) 1.18 kB
import GirafeConfig from '../../../tools/configuration/girafeconfig'; import { MapContextMenuState } from './contextmenustate'; import { GeoTIFFImage } from 'geotiff'; import { GeoTransform } from '../../../tools/raster/rasterutils'; type ContextmenuConfig = GirafeConfig['contextmenu']; interface Raster { id: string; url: string; type: 'COG' | 'API'; crs: string; label: string; transform: GeoTransform | null; image: GeoTIFFImage | null; pixelvalue: number | null; pixelstring: string | null; prefix: string; suffix: string; precision: number; nodata: number; } export declare class MapContextMenuManager { private readonly MapContextMenuState; private readonly i18nManager; private _position; projection: string | null; rasters: Raster[]; constructor(MapContextMenuState: MapContextMenuState); get position(): [number, number]; set position(value: [number, number]); init(config: ContextmenuConfig): void; getCoordinate(code: string): [number, number] | null; updateCoordinates(): void; updateLinks(): void; resetRasters(): void; updateRasterSamples(): void; } export {};