Skip to content

@eodash/eodash / @eodash/stac / createEodashIndicator

Function: createEodashIndicator() ​

ts
function createEodashIndicator(url, options?): Promise<IndicatorReader>;

Creates an indicator reader that coordinates multiple STAC collections, combines base layers, data layers, observation points, and overlays, and can produce complete EOxMap configurations.

Parameters ​

url ​

string

Indicator collection URL or STAC API endpoint

options? ​

api? ​

boolean

Whether the collections use STAC API endpoints (autoinferred if omitted)

client? ​

AxiosInstance

Custom HTTP client

colors? ​

string[]

Colors assigned across child collections

fetch? ​

{ (input, init?): Promise<Response>; (input, init?): Promise<Response>; }

Custom fetch implementation

rasterEndpoint? ​

string

Base URL for raster tile rendering

renders? ​

Record<string, Record<string, Render>>

Render configurations

stac? ​

STACCollection

Pre-fetched STAC collection/indicator document

themes? ​

ObservationPointsThemes

Marker styling for observation points

tileMatrixSets? ​

Record<string, any> | null

TileMatrixSet configurations

upscalingEndpoints? ​

( | string | { scaleFactor?: number; titilerVersion?: 2 | 1; url: string; })[]

Tile endpoints for high-res rendering

viewProjection? ​

string

Map view projection (autoinferred from stac if omitted, default "EPSG:3857")

Returns ​

Promise<IndicatorReader>