Skip to main content

datasette-leaflet-geojson

PyPI Changelog Tests License

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

Installation

Install this plugin in the same environment as Datasette.

$ datasette install datasette-leaflet-geojson

Usage

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

Demo

You can try this plugin out at https://calands.datasettes.com/calands/superunits_with_maps

datasette-leaflet-geojson in action

Configuration

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.

Metadata

Release files for datasette-leaflet-geojson 0.8.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for datasette-leaflet-geojson 0.8.2
File Size Uploaded Provenance
datasette_leaflet_geojson-0.8.2.tar.gz 5.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for datasette-leaflet-geojson 0.8.2
File Interpreter ABI Platform
datasette_leaflet_geojson-0.8.2-py3-none-any.whl Python 3 none any Details

Total release size: 10.1 kB

Release files / datasette_leaflet_geojson-0.8.2.tar.gz

Download URL datasette_leaflet_geojson-0.8.2.tar.gz
Size 5.0 kB
Tags Source
SHA-256 checksum
How to use checksums
d72e5390b7cb3bafcc8792d1353e053165920876d56ee6185c7b4480bbec6d06
BLAKE2b-256 checksum
How to use checksums
0f80914c65057714798c97bdcdaaa480dcdcb94c246358d00cd185e9e9c91fa1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.3

Release files / datasette_leaflet_geojson-0.8.2-py3-none-any.whl

Download URL datasette_leaflet_geojson-0.8.2-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cbc64db5c6ec8d75de2c3390e6ce0cc680ab71105434692aad5e7400393a8a24
BLAKE2b-256 checksum
How to use checksums
a342f119c40f5e436300a3ae8bc9e23e6667c6964da5974238bf05298b2f0a59
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.3

Security for datasette-leaflet-geojson 0.8.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page