Skip to main content

A Datasette plugin that renders GeoJSON columns using Leaflet

Project description


PyPI Changelog Tests License

Datasette plugin that replaces any GeoJSON column values with a Leaflet map


Install this plugin in the same environment as Datasette.

$ datasette install datasette-leaflet-geojson


Any columns containing valid GeoJSON strings will have their contents replaced with a Leaflet map when they are displayed in the Datasette interface.


You can try this plugin out at

datasette-leaflet-geojson in action


By default this plugin displays maps for the first ten rows, and shows a "Click to load map" prompt for rows past the first ten.

You can change this limit using the default_maps_to_load plugin configuration setting. Add this to your metadata.json:

    "plugins": {
        "datasette-leaflet-geojson": {
            "default_maps_to_load": 20

Then run Datasette with datasette mydb.db -m metadata.json.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

datasette-leaflet-geojson-0.8.1.tar.gz (4.8 kB view hashes)

Uploaded Source

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page