Datasette 推出 MapLibre 地理空间插件
Datasette 发布新插件 datasette-maplibre 0.1a0,将 MapLibre GL 与免费矢量地图服务 OpenFreeMap 结合,整合了 datasette-cluster-map 与 datasette-leaflet-geojson 两个插件的功能。作者 Simon Willison 表示大部分代码由单条提示词交给 Claude 生成,并实现了 GeoJSON 形状 SVG 预览、滚动进入视口后才加载 WebGL 预览等创意特性。
报道正文
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