Simon Willison’s Weblog

Subscribe
Atom feed for leaflet Random

46 posts tagged “leaflet”

The Leaflet JavaScript library for interactive maps.

2021

Release datasette-leaflet-freedraw 0.1.3 — Draw polygons on maps in Datasette
Release datasette-leaflet-freedraw 0.1.2 — Draw polygons on maps in Datasette
Release datasette-leaflet-freedraw 0.1.1 — Draw polygons on maps in Datasette
Release datasette-leaflet-freedraw 0.1 — Draw polygons on maps in Datasette

2020

Weeknotes: California Protected Areas in Datasette

Visit Weeknotes: California Protected Areas in Datasette

This week I built a geospatial search engine for protected areas in California, shipped datasette-graphql 1.0 and started working towards the next milestone for Datasette Cloud.

[... 1,099 words]

TIL Dynamically loading multiple assets with a callback — For [datasette-leaflet-geojson](https://github.com/simonw/datasette-leaflet-geojson) I wanted to dynamically load some external CSS and JavaScript and then execute some code once they had loaded ([issue 14](https://github.com/simonw/datasette-leaflet-geojson/issues/14)).
TIL Outputting JSON with reduced floating point precision — [datasette-leaflet-geojson](github.com/simonw/datasette-leaflet-geojson) outputs GeoJSON geometries in HTML pages in a way that can be picked up by JavaScript and used to plot a Leaflet map.
Release datasette-leaflet-geojson 0.6 — Datasette plugin that replaces any GeoJSON column values with a Leaflet map.

California Protected Areas Database in Datasette (via) I built this yesterday: it’s a Datasette interface on top of the CPAD 2020 GIS database of protected areas in California maintained by GreenInfo Network. This was a useful excuse to build a GitHub Actions flow that builds a SpatiaLite database using my shapefile-to-sqlite tool, and I fixed a few bugs in my datasette-leaflet-geojson plugin as well.

# 21st August 2020, 11:15 pm / geospatial, projects, shapefiles, spatialite, california, datasette, github-actions, leaflet

Release datasette-leaflet-geojson 0.5 — Datasette plugin that replaces any GeoJSON column values with a Leaflet map.

Things I learned about shapefiles building shapefile-to-sqlite

Visit Things I learned about shapefiles building shapefile-to-sqlite

The latest in my series of x-to-sqlite tools is shapefile-to-sqlite. I learned a whole bunch of things about the ESRI shapefile format while building it.

[... 1,073 words]

2019

Release datasette-leaflet-geojson 0.4 — Datasette plugin that replaces any GeoJSON column values with a Leaflet map.

Weeknotes: PG&E outages, and Open Source works!

My big focus this week was the PG&E outages project. I’m really pleased with how this turned out: the San Francisco Chronicle used data from it for their excellent PG&E outage interactive (mixing in data on wind conditions) and it earned a bunch of interest on Twitter and some discussion on Hacker News.

[... 452 words]

Release datasette-leaflet-geojson 0.3 — Datasette plugin that replaces any GeoJSON column values with a Leaflet map.

2018

Datasette plugins, and building a clustered map visualization

Datasette now supports plugins!

[... 751 words]

2017

Building a location to time zone API with SpatiaLite, OpenStreetMap and Datasette

Given a latitude and longitude, how can we tell what time zone that point lies within? Here’s how I built a simple JSON API to answer that question, using a combination of data from OpenStreetMap, the SpatiaLite extension for SQLite and my Datasette API tool.

[... 2,185 words]