EnsembleForecast
Packaged plume charts with toolbar, chart, and footer.
Wraps EnsembleModelsProvider and EnsembleProvider, then optional Toolbar, Builder + Chart, and Footer. lat and lon are required. Charts load from GET /api/platform/ensemble-point-forecast unless you pass charts or getCharts. Applies ip-platform for you.
import { EnsembleForecast } from '@infoplaza/platform/ensemble'- Do not pass a models array. The catalog is loaded from the auth route.
- When model / defaultModel are omitted, the provider selects ecmwfensembleglobal if it is in the catalog, otherwise the first model.
- showToolbar and showFooter default to true.
Required props
| Prop | Type | Default | Description |
|---|---|---|---|
| lat | number | — | Latitude of the forecast point. |
| lon | number | — | Longitude of the forecast point. |
Optional props
| Prop | Type | Default | Description |
|---|---|---|---|
| basePath | string | '/api/platform' | Auth handler mount path. |
| showToolbar | boolean | true | Render the model / run pill toolbar. |
| showFooter | boolean | true | Render element-group and Basic / Expert pills. |
| view / defaultView / onViewChange | 'basic' | 'expert' | 'basic' | Chart density. Expert shows more member detail. |
| charts | EnsembleChartBlock[] | — | Host-owned chart blocks. When defined, skips the point-forecast fetch. |
| getCharts | (options) => EnsembleChartBlock[] | — | Sync override when charts is omitted. Receives model, run, elementGroup, view, models, elementGroups, locale, timezone. |
| locale | string | 'en' | Date axis labels: 'en' | 'nl' | 'de' | 'it' | 'es' | 'fr'. |
| className | string | — | Extra class on the root wrapper. |
Example
<EnsembleForecast
lat={52.3676}
lon={4.9041}
locale="en"
/>