A Datasette plugin that renders GeoJSON columns using Leaflet
Project description
datasette-leaflet-geojson
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
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
.
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
Built Distribution
Hashes for datasette_leaflet_geojson-0.8.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d72e5390b7cb3bafcc8792d1353e053165920876d56ee6185c7b4480bbec6d06 |
|
MD5 | 8fbfe06ce86e2714284f44626612d9ce |
|
BLAKE2b-256 | 0f80914c65057714798c97bdcdaaa480dcdcb94c246358d00cd185e9e9c91fa1 |
Hashes for datasette_leaflet_geojson-0.8.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cbc64db5c6ec8d75de2c3390e6ce0cc680ab71105434692aad5e7400393a8a24 |
|
MD5 | 8481a71a27f211e996cfd9f33d40dfda |
|
BLAKE2b-256 | a342f119c40f5e436300a3ae8bc9e23e6667c6964da5974238bf05298b2f0a59 |