---
title: "Kepler Geospatial Maps panel plugin for Grafana"
description: "Spatio-temporal maps for Grafana dashboards — trajectories, origin-destination flows and velocity… Kepler Geospatial Maps panel plugin for Grafana by UBICA."
---

> This is the Markdown version of https://grafana.com/grafana/plugins/ubica-keplergl-panel/
>
> The index of all catalog pages is at https://grafana.com/grafana/plugins/llms.txt

# Kepler Geospatial Maps

- Developer: UBICA
- Version: 1.12.1
- [Installation](https://grafana.com/grafana/plugins/ubica-keplergl-panel/installation.md)
- [Change log](https://grafana.com/grafana/plugins/ubica-keplergl-panel/changelog.md)

![Vector, aggregated and cloud-native raster layers of one place, stacked on a Grafana time bar](https://grafana.com/api/plugins/ubica-keplergl-panel/versions/1.12.1/images/img/banner.png)

![The Amazon drainage as a velocity field, traced from origin-destination rows](https://grafana.com/api/plugins/ubica-keplergl-panel/versions/1.12.1/images/img/screenshot-flow-field.png)

![A live transit fleet, each vehicle a symbol turned to its heading and coloured by punctuality](https://grafana.com/api/plugins/ubica-keplergl-panel/versions/1.12.1/images/img/screenshot-transit.png)

![Origin-destination flows built from query rows: taxi trips of the last ten minutes, in three dimensions](https://grafana.com/api/plugins/ubica-keplergl-panel/versions/1.12.1/images/img/screenshot-flows.png)

![Global seismicity read as remote GeoParquet by DuckDB, with the time filter and its playback](https://grafana.com/api/plugins/ubica-keplergl-panel/versions/1.12.1/images/img/screenshot-quakes.png)

# Kepler Geospatial Maps for Grafana

![Kepler Geospatial Maps for Grafana: vector, aggregated and cloud-native raster layers of South America stacked over a Grafana time bar, crossed at one place](https://raw.githubusercontent.com/ubica-ecuador/keplergl-grafana-panel/main/src/img/banner.png)

Interactive [kepler.gl](https://kepler.gl/) maps inside Grafana dashboards, fed by any Grafana data source. Built for advanced spatio-temporal mobility data — points, trajectories and origin-destination flows visualizations.

kepler.gl runs inside the panel, against your own queries: no account, no Mapbox token, and no hosted service rendering your map.

**🌍 [Live demos](https://pacha.ubica.dev/)** — dashboards running on pacha.ubica.dev, a public Grafana. No account and nothing to install: open one and pan, filter and play it yourself. They run on [Pacha](https://github.com/ubica-ecuador/pacha), an open spatio-temporal stack for Grafana that includes this panel, with DuckDB on the server and in the browser: one command brings it up with these dashboards.

**📖 [Full documentation](https://docs.ubica.dev/)** — guides, tutorials, a layer gallery and a complete option reference.

> Built on a kepler.gl pre-release (3.3.0-alpha), because the Flow layer exists nowhere else — see [Compatibility](https://docs.ubica.dev/reference/compatibility.html).

## Already on Geomap? Switch in one click

Edit a Geomap panel, choose **Kepler Geospatial Maps** in the visualization picker, and save the dashboard. That is the whole migration: the map comes across as it was, with nothing to rebuild.

- **Its layers**: markers, heatmaps, routes, networks, GeoJSON, photos, XYZ and ArcGIS tiles and night/day become kepler layers, with their colours, thresholds, sizes, labels and legend, in the same order.
- **The same queries and columns**: location by coordinates, geohash or lookup works unchanged.
- **The same view and base map**: the same centre, at the zoom that shows the same area (or _Fit to data_), and the closest base map the panel offers.
- **Nothing hidden**: anything without a counterpart is named in a notice right after the switch.

From there the map has everything kepler adds: trips that animate, flows, filters, playback, 3D and cross-filtering with the rest of the dashboard. [Coming from Geomap](https://docs.ubica.dev/guide/coming-from-geomap.html) lists what converts, what looks different and why.

## What it does today

- **Any data source.** Each query becomes a kepler dataset, so a single panel can overlay several.
- **Column autodetection**, overridable per query — lat/lng, time, trip id, geometry, H3, origin/destination pairs, bearing and magnitude.
- **Geometry from any spatial source** — GeoJSON, WKT, or raw WKB/EWKB hex, so a plain `SELECT geom` from PostGIS works with no `ST_AsGeoJSON`.
- **Automatic trip animation** — a query with a trip id and a time becomes an animated kepler Trip layer with a playback timeline, no manual layer setup.
- **Origin-destination flow layers**, automatic — an OD query becomes an animated flow map.
- **Symbols turned to a bearing** — a position and a heading become one mark per row: a fleet, a set of vessels, a network of stations. Over a thousand shapes from Maki, Temaki and the UN OCHA humanitarian icons, picked by category, with outline, shadow, labels and thinning — or a picture per row instead of a shape.
- **Animated wind and current fields, three ways** — a grid of velocities becomes **Streamlines** that trace particles through it, following the view so their density and line length hold steady as you zoom; a **Vector field** of arrows or meteorological wind barbs over the same grid; or either of them traced from the gradient of a single column of values. The streamlines run on a clock of their own, walk a whole forecast with the dashboard's timeline, and lie on the terrain where the altitude varies.
- **Cloud-native imagery** — a query that returns the address of a COG, a PMTiles archive, a Zarr store, a WMS or an ArcGIS Image Service draws it, and the dashboard clock walks the series without re-running the query. Band combinations and false colour come from the scene's STAC item. A small Zarr store can also be read straight in the browser, with kepler's own Zarr layer.
- **Places without coordinates** — a query that has only a geohash is drawn as its cells, and a country, US state or airport code or name, or one from a list of your own, is placed at its centre.
- **Routes, networks, photos, tiles and night** — a query's rows joined in order as a route, nodes and edges as a network, a photo per row on the map, any XYZ tile service as a layer, and the side of the Earth in darkness shaded at the start or end of the dashboard's time range.
- **Draggable markers** bound to dashboard variables, for the origin and destination of an isochrone or the point a radius is measured from.
- **Dashboard time range synced with the map** — one-way, both ways, or published to variables so the map keeps its whole dataset while the slider drives the other panels, paced so playback does not outrun the panels answering it.
- **Cross-filtering, both ways** — a filter set on the map drives a dashboard variable, and changing that variable filters the map. Clicks, the viewport and drawn areas publish too, a click can be made to confirm from the popup first, and whatever is selected is ringed on the map — on a shared link as well.
- **Part of the dashboard, not just on it.** The dashboard's annotations that carry a place are drawn as notes on the map, and a note made on the map can be saved as a Grafana annotation that every time chart draws. A clicked entity's popup lists its data links and actions, and adds `field = value` as an ad hoc filter. _Change visualization_ from Geomap keeps its layers, columns and view.
- **Live data** — a query that streams through Grafana Live (the MQTT data source, `/api/live/push`) moves on the map as its rows arrive, with no refresh: the map keeps to the newest rows and updates at most once a second.
- **Layers on every world copy** — pan past the date line and the points, symbols and notes are still there, on the copy of the world in view.
- **Works with Grafana Assistant** — the panel tells the Assistant live what the map is showing, so it can answer about the map, restyle it, and build whole dashboards around it from a prompt. More in the Grafana Assistant section below. Without the Assistant, nothing changes.
- **Your layer configuration survives a refresh.** Data is swapped underneath the layers rather than the datasets being torn down and rebuilt.
- **Saved map configuration** stored with the dashboard, and configs pasted from kepler.gl, Foursquare Studio or Dekart are accepted.
- **Follows the dashboard theme**, base map included.
- **No account needed for the base maps.** OpenFreeMap's five by default — Positron, Bright, Liberty, Dark, Fiord — with no key at all; CARTO's three, asked for without a key (their raster tiles carry a watermark without one since 23 Sep 2026); and Esri's three — flat satellite imagery, plus satellite and topographic with **real elevation**: tilt the camera and the ground has relief. Topographic exists only in this relief form; there is no flat version. And a nautical chart, Open Waters' **Seamap**: OpenStreetMap's seamarks over depths, with switches of its own (not for navigation). Every one can be swapped for a self-hosted `style.json`; kepler's icon library ships with the plugin.

> **Esri's terms of use.** The satellite and topographic imagery come from Esri's public `services.arcgisonline.com` endpoint, whose terms ask for an ArcGIS account for production use. Installs that need a cleaner footing should point **Base map** at their own `style.json`.

## Dashboards built with it

Every picture is the panel drawing rows a query returned — and most of them are **[live on pacha.ubica.dev](https://pacha.ubica.dev/)**, read-only, so the screenshots below can be checked against the running thing.

|                                                                                                                                                                                                                                                                                                     |                                                                                                                                                                                                                                                                                                     |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ![Zarr, drawn and measured](https://raw.githubusercontent.com/ubica-ecuador/keplergl-grafana-panel/main/docs/site/public/img/showcase/zarr-stats.jpg)**Zarr, drawn and measured**<br>A Zarr store rendered live, and the rectangle you draw measured in the month the layer is showing.             | ![Daily rainfall, and its clock](https://raw.githubusercontent.com/ubica-ecuador/keplergl-grafana-panel/main/docs/site/public/img/showcase/chirps-rain.jpg)**Daily rainfall, and its clock**<br>One cloud-optimised GeoTIFF per day. The time bar changes the picture without re-running the query. |
| ![Seismicity in three dimensions](https://raw.githubusercontent.com/ubica-ecuador/keplergl-grafana-panel/main/docs/site/public/img/showcase/earthquakes.jpg)**Seismicity in three dimensions**<br>Magnitude as height and colour, kepler's own layer panel open, a click publishing its coordinate. | ![Active fires, ranked as you pan](https://raw.githubusercontent.com/ubica-ecuador/keplergl-grafana-panel/main/docs/site/public/img/showcase/fires.jpg)**Active fires, ranked as you pan**<br>Hotspots on a 0.1° grid, with the table beside it ranking whatever is in view.                        |
| ![Polygons straight from the database](https://raw.githubusercontent.com/ubica-ecuador/keplergl-grafana-panel/main/docs/site/public/img/showcase/water-risk.jpg)**Polygons straight from the database**<br>WRI Aqueduct basins as GeoJSON, coloured by score over a satellite base map.             | ![Reports, filtered both ways](https://raw.githubusercontent.com/ubica-ecuador/keplergl-grafana-panel/main/docs/site/public/img/showcase/severe-weather.jpg)**Reports, filtered both ways**<br>NOAA storm reports by type. The variables filter the map, and the map filters the counts.            |

**[Open the live demos →](https://pacha.ubica.dev/)** — these and some forty more, from Zarr, COG, STAC and PMTiles imagery to wind fields and transit isochrones. How each one was built is in the [documentation](https://docs.ubica.dev/).

## Requirements

Requires **Grafana `>=12.0.10 <12.1 || >=12.1.7 <12.2 || >=12.2.5`**. Those floors are not arbitrary: Grafana only added `react/jsx-runtime` to its module import map in those patches, and the plugin fails to load below them.

Setting it up with Docker, provisioning or a hardened Grafana is covered in the [install guide](https://docs.ubica.dev/guide/install.html).

### Hardened Grafana

With `content_security_policy = true` the map loads and its Web Workers start, but `connect-src` blocks the base map. MapLibre fetches styles, sprites, glyphs and tiles over XHR, so they all fall under that directive:

```ini
content_security_policy_template = """...connect-src 'self' grafana.com https://tiles.openfreemap.org https://basemaps.cartocdn.com https://*.basemaps.cartocdn.com https://services.arcgisonline.com https://tiles.mapterhorn.com https://tiles.openwaters.io https://tiles.versatiles.org ...;"""
```

If your template also sets `worker-src`, it has to allow `'self'`: MapLibre's worker is a file served with the plugin, under `public/plugins/ubica-keplergl-panel/maplibre/`, not a `blob:` URL.

No code is fetched from a CDN at runtime. The decoders that 3D tiles, glTF and Parquet files need (Draco, Basis/KTX2, parquet-wasm) ship with the plugin under `public/plugins/ubica-keplergl-panel/loaders/`, and loaders.gl parses on the main thread instead of starting workers from unpkg.com.

Each host serves only what its name suggests: OpenFreeMap the five default base maps, CARTO its three, Esri the satellite and topographic ones, Mapterhorn the elevation tiles behind the two relief styles, and Open Waters and VersaTiles the Seamap chart. Leave out the ones you never use — or point **Base map** at infrastructure of your own and skip this entirely. A raster tile server, if you set one, is the one host more.

> **The raster tile server.** A query that returns a COG or a Zarr store is drawn by a tile server, not by the browser. None is set by default: until the **Raster tile server** option names one, such a query draws nothing and the panel says which query is waiting for it. The server reads the imagery on the map's behalf, which means every URL the query returns — signature and all — is handed to it, so point it at a TiTiler of your own and add that host to `connect-src`. Development Seed's public demo, `https://titiler.xyz` (the default before 1.3.0), still works for public imagery. A `.pmtiles` archive, a WMS and an ArcGIS Image Service need no server at all.

## A first map

Nothing special is required of a query: the plugin reads the columns it already returns.

```sql
SELECT lat AS latitude,
       lon AS longitude,
       recorded_at,          -- any time column is detected by type
       speed_kmh             -- extra columns become tooltips and colour scales
FROM gps_readings;
```

Add a panel, choose **Kepler Geospatial Maps**, and that is a map. Name a column the plugin does not recognise and you map it by hand under **Field mapping**, per query.

Layer and map styling lives in kepler's store, so capture it with **Map configuration → Save current map** before reloading the page.

The [quickstart](https://docs.ubica.dev/guide/quickstart.html) walks through it properly, and [tutorial 1](https://docs.ubica.dev/tutorials/first-map.html) builds a live map of global seismicity from a public feed.

## Grafana Assistant

On a Grafana that has the [Grafana Assistant](https://grafana.com/docs/grafana-cloud/platform/grafana-assistant/) — Grafana Cloud, or self-managed Grafana 13 connected to a Cloud stack — the panel needs no setup:

- **It knows what the map shows.** While a dashboard with a map is open, the Assistant is handed each query's fields and row count, the base map on screen, the saved filters and viewport, and the dashboard's time range. Ask _"what is this map showing?"_ and it answers without running a query.
- **It can build dashboards with it.** Ask for _"a map of the GPS tracks with a time series of point counts, filtered by clicking a track"_ and it writes the queries, the map, the chart and the variable that ties them together.
- **Two short skill texts make it reliable.** On its own the Assistant gets the saved map's JSON shape wrong — base maps the panel does not have, configs the panel silently drops. Paste the two texts from the [Grafana Assistant guide](https://docs.ubica.dev/guide/dashboard/grafana-assistant.html) as standing instructions and it restyles the map right the first time.

Nothing is sent anywhere by the panel itself, and on a Grafana without the Assistant the panel behaves exactly as before.

## Documentation

| Section                                                                                    | Covers                                                                                       |
| ------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------- |
| [Getting data in](https://docs.ubica.dev/guide/data/how-a-query-becomes-a-map.html)        | How a query becomes a map, points, geometry, trajectories, flows, H3 and S2, velocity fields |
| [The map](https://docs.ubica.dev/guide/map/basemaps-and-relief.html)                       | Base maps and relief, theme, saving and importing a configuration                            |
| [Using kepler's own panel](https://docs.ubica.dev/guide/kepler/layers-and-attributes.html) | Layers, colour, filters, interactions, playback, effects — and what differs here             |
| [Dashboard integration](https://docs.ubica.dev/guide/dashboard/time-range-sync.html)       | Time sync, cross-filtering, publishing the viewport and drawn areas, Grafana Assistant       |
| [Data source recipes](https://docs.ubica.dev/guide/sources/postgis.html)                   | PostGIS, DuckDB, Infinity, and any other SQL source                                          |
| [Layer gallery](https://docs.ubica.dev/layers/)                                            | Every layer type the panel can build, with the query behind it                               |
| [Tutorials](https://docs.ubica.dev/tutorials/)                                             | Six end-to-end walkthroughs against public data                                              |
| [Reference](https://docs.ubica.dev/reference/panel-options.html)                           | Panel options, field roles, variable formats, troubleshooting, compatibility                 |

Two pages are worth singling out. [Differences from stock kepler.gl](https://docs.ubica.dev/reference/differences-from-kepler.html) lists everything this panel changes about kepler, and [Under the hood](https://docs.ubica.dev/reference/under-the-hood.html) maps each kepler layer to the deck.gl layer that actually draws it.

## Kepler Geospatial Maps Plus

The commercial edition, for operations maps: every sensor, site and vehicle on the map with its own time series, as gauges, sparkline cards, live fleets, network links and surfaces, over Google 3D Tiles if you like, with a Time Brush to drive the dashboard, geofence alerts drawn on the vehicles they name, and 4D models of a building going up task by task. It is a separate, closed-source plugin in the [Grafana plugin catalog](https://grafana.com/grafana/plugins/ubica-keplerplus-app/); this panel does not need it, and everything in this repository stays free. What it adds: [docs.ubica.dev/plus](https://docs.ubica.dev/plus/).

## Support

The plugin is free, and every feature is in this repository. For organisations that depend on it, [UBICA](https://ubica.dev/) offers support for production use, sponsored features, dashboard implementation and training — see [Support and services](https://docs.ubica.dev/support.html). Bugs and questions are welcome as [GitHub issues](https://github.com/ubica-ecuador/keplergl-grafana-panel/issues) either way.

## Licence

Apache-2.0. The published archive bundles third-party code and assets — kepler.gl and deck.gl (MIT), flowmap.gl (Apache-2.0), kepler.gl's icon and colormap assets, and the map symbols of Maki, Temaki and the UN OCHA Humanitarian Icons (CC0). Their notices are in [THIRD-PARTY-LICENSES.md](https://github.com/ubica-ecuador/keplergl-grafana-panel/blob/main/THIRD-PARTY-LICENSES.md), which ships inside the plugin as well.
