Skip to main content

Frontend & Dashboards

Build a custom UI on top of the platform — a farmer-facing dashboard, an advisory console, a public-facing map.

What you need

  • An OIDC client registered in IAM.
  • A map library — MapLibre GL JS, Leaflet, or OpenLayers.
  • A familiarity with Spatio-Temporal API and Farm API.

API building blocks

You want…Use…
A basemap raster tile layerGET /api/v2/collections/{id}/tiles/WebMercatorQuad/{z}/{x}/{y} — PNG
TileJSON for the clientGET /api/v2/collections/{id}/tiles/WebMercatorQuad/tilejson.json?layers=NDVI
A vector layer (farms, fields, samples)GET /api/v2/collections/{id}/tiles/WebMercatorQuad-Vector/{z}/{x}/{y} — MVT
A queryable feature listGET /api/v2/collections/{id}/itemsbbox, datetime, CQL2 filter, sortby, facetby
A raster overlay (NDVI, soil parameter)A Zarr layer rendered as tiles — see TileJSON above
A live time-series chartSensor Things API observations — REST or MQTT
A time-series chart over an area/api/v2/collections/{id}/aggregate/time-series
A summary statistic over an area/api/v2/collections/{id}/aggregate/summary
A STAC browserGET /api/v2/stac/
An audit trail of operationsActivity API
  • MapLibre GL — the platform auto-generates a MapLibre style per collection (GET /collections/{id}/style). Drop the TileJSON in as a source and you're done.
  • Leaflet with leaflet-vector-tile-layer (MVT) or the raw raster TileJSON URL.
  • pystac-client or stac-browser for STAC.
  • chart.js / uPlot for the time-series response from the aggregations endpoints.

Auth in the browser

Use PKCE flow with Keycloak. Tokens are short-lived; refresh in the background. The same Bearer token works against the main API, the OGC STA service, and the Spatio-Temporal service.

Reference implementation

The GeoAI Decision Support System (Telangana) is the canonical example: state-level NDVI overview → mandal-level parameter detail → individual field detail, with a pin tool, timeline, and AI-output overlays.

Case Study · GeoAI Telangana