Products

datasette-maplibre 0.1a0 发布:用 Claude 一条提示生成的地图插件

datasette-maplibre 0.1a0

Why we picked it

Simon Willison 用一条 Claude Fable 5.2 提示写出了整个 datasette-maplibre 插件,接上 OpenFreeMap 免费矢量底图就能在 Datasette 里看 GeoJSON 和坐标点。SVG 占位加滚动才加载 WebGL 的设计挺聪明,浏览器里 Datasette Lite 就能直接跑 Demo,做数据发布的可以试试。

Simon Willison 发布了 Datasette 地理空间插件 datasette-maplibre 0.1a0,这是 Datasette 生态里许久以来首个新的地图插件。它将 MapLibre GL 库与 Zsolt Ero 运营的免费矢量地图服务 OpenFreeMap 结合,支持在 Datasette 中直接可视化 GeoJSON 形状和经纬度点数据。

Body

插件的大部分代码由一条发送给 Claude Fable 5.2 的提示生成:要求它参考 datasette-cluster-map 和 datasette-leaflet-geojson 两个旧插件,再用 maplibreGL 和 openfreemap 实现两者功能的合并版本。提示词中加入的"发挥创意"要求带来了一个巧妙设计:先用 SVG 预览 GeoJSON 形状,只有当图形滚动进入视野时才加载 WebGL 预览,降低了渲染开销。

作者还让 Claude 构建了完整演示页面,可在最新版 Datasette Lite 中通过 Pyodide 和 WebAssembly 在浏览器内直接加载插件和演示数据库运行,无需本地安装。对用 Datasette 发布数据的开发者来说,这是替代 Leaflet 系旧插件的新选项。

Original · Simon Willison’s Weblog

datasette-maplibre 0.1a0

Release: datasette-maplibre 0.1a0 The first new Datasette geospatial plugin in quite a while! This one combines the excellent MapLibre GL library with OpenFreeMap , the free vector map server operated by Zsolt Ero (you should sponsor Zsolt on GitHub .) I built most of this with a single prompt to Claude Fable 5.2: Look at datasette-cluster-map and datasette-leaflet-geojson plugins, then look at ~/dev/tools/openfreemap-demo.html - then build a brand new Datasette plugin that uses maplibreGL and openfreemap and combines the features of those other two plugins - but be creative and think outside the box for other useful features the plugin might have "Be creative and think outside the box" resulted in a few neat ideas - my favorite is that it displays SVG previews of GeoJSON shapes, then loads a WebGL preview only when they scroll into view. I also had Claude build a comprehensive demo which works in the latest Datasette Lite, so you can visit this link to load the plugin and a demo database in your browser via Pyodide and WebAssembly. I like this demo page showing both GeoJSON shapes and lat/lon points on the same map: Tags: visualization , generative-ai , datasette-lite , claude-mythos-fable , ai , llms , geospatial , openstreetmap , datasette

Industry Coordinates & Source Verification

This report is categorized under AITOP's "Products" desk, focusing on US frontier AI labs and Silicon Valley technology leaders. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows and US-China foundation model benchmarks and commercialization comparison. Key entities and technical topics under continuous tracking include Datasette, MapLibre, OpenFreeMap, Claude.

Source attribution: curated from Simon Willison’s Weblog.