import { ImageTile, Map } from 'ol'; import WebGLTileLayer from 'ol/layer/WebGLTile.js'; import type GeoTIFF from 'ol/source/GeoTIFF.js'; import TerraElement from '../../internal/terra-element.js'; import type { CSSResultGroup } from 'lit'; import TerraButton from '../button/button.component.js'; import TerraPlot from '../plot/plot.component.js'; import TerraIcon from '../icon/icon.component.js'; import TerraPlotToolbar from '../plot-toolbar/plot-toolbar.component.js'; import TerraAlert from '../alert/alert.component.js'; import type { Variable } from '../browse-variables/browse-variables.types.js'; import { AuthController } from '../../auth/auth.controller.js'; import TerraLoader from '../loader/loader.component.js'; import type DataTileSource from 'ol/source/DataTile.js'; import type DataTile from 'ol/DataTile.js'; export default class TerraTimeAverageMap extends TerraElement { #private; static styles: CSSResultGroup; static dependencies: { 'terra-button': typeof TerraButton; 'terra-icon': typeof TerraIcon; 'terra-plot-toolbar': typeof TerraPlotToolbar; 'terra-loader': typeof TerraLoader; 'terra-plot': typeof TerraPlot; 'terra-alert': typeof TerraAlert; }; collection?: string; variable?: string; startDate?: string; endDate?: string; location?: string; bearerToken: string; long_name: string; colorMapName: string; opacity: number; catalogVariable: Variable; pixelValue: string; pixelCoordinates: string; metadata: { [key: string]: string; }; toggleState: boolean; minimized: boolean; noDataValue: number; min: string; max: string; legendValues: { value: string; rgb: string; }[]; /** * stores error information from time average map requests */ private timeAverageMapError; _authController: AuthController; colormaps: string[]; plotData: {}; layout: {}; harmonyJobId?: string; /** * anytime the collection or variable changes, we'll fetch the variable from the catalog to get all of it's metadata */ _fetchVariableTask: import("@lit/task").Task<(string | undefined)[], void>; handlePropertyChange(): void; handlePlotOptionsChange(): void; connectedCallback(): void; firstUpdated(): Promise; updated(changedProps: globalThis.Map): void; disconnectedCallback(): void; updateGeoTIFFLayer(blob: Blob): Promise; intializeMap(): void; addBordersLayerForGeoTIFF(gtSource: GeoTIFF): Promise; fetchGeotiffMetadata(gtSource: GeoTIFF): Promise<{ [key: string]: string; }>; renderPixelValues(map: Map, gtLayer: WebGLTileLayer): void; getNoDataValue(gtSource: DataTileSource | null): number; getMinMax(gtSource: DataTileSource): Promise<{ min: number; max: number; }>; getColorStops(name: any, min: any, max: any, steps: any, reverse: any): Promise; generatePalette(clrs: any, dv: any, min: any, max: any): void; applyColorToLayer(gtSource: DataTileSource, color: String): Promise; render(): import("lit-html").TemplateResult<1>; }