Datasette-MapLibre: Geospatial mapping via AI-written code
Datasette-MapLibre is a new geospatial plugin for Datasette that marries MapLibre GL, a WebGL mapping engine, with OpenFreeMap, a free vector tile server. It consolidates capabilities from earlier Datasette mapping plugins while adding fresh functionality for data exploration.
The plugin emerged from a single Claude AI prompt, which synthesized two existing plugins and generated novel features. A key optimization renders GeoJSON shapes as lightweight SVG previews that upgrade to full WebGL rendering only when users scroll them into view. Maps can display both geometric shapes and discrete latitude/longitude points simultaneously.
A fully functional demo runs in the browser through Datasette Lite, bundled via WebAssembly and Pyodide, making the plugin explorable without local setup.
Read the full article
Continue reading at Simon Willison →This is an AI-generated summary. Read the original for the full story.