1min.

1MIN · PYTHON

Datasette MapLibre limits active maps while previewing many shapes

Datasette MapLibre adds vector maps for latitude/longitude rows and GeoJSON shapes, including points and shapes on the same map. GeoJSON cells initially show lightweight SVG outlines and become interactive as they enter view. The plugin limits active cell maps, returning older off-screen maps to outlines, so a table can contain many shapes without creating unlimited WebGL contexts.

Datasette · Nov 15, 2026

Why it matters

Progressive enhancement can preserve a useful preview while reserving expensive browser resources for visible content.

More context

Install datasette-maplibre in the Datasette environment; it requires Datasette 1.0a43 or newer. Try the repository’s Datasette Lite demo first, then a representative table. MapLibre JavaScript is bundled, while styles, fonts and tiles come from OpenFreeMap by default unless reconfigured.

Keep in mind

Initial alpha. Eight cell maps are active by default, with a configurable limit. Rendering depends on browser WebGL support and map resources; a browser-run demo does not establish offline operation or production capacity.

Original read

More engineering ideas, one minute at a time.

Explore more stories