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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab4412960d9e9c3220f24dd2264a8470a8da01854be5ce772adeff43a1f460aa |
|
MD5 | 9d6bd282c9743ee26109aaa211d0dc5a |
|
BLAKE2b-256 | e7294f5a63c9691b89f71f5d91b43aa79525a29143899ecffc6cf9135cdb1dd7 |
Hashes for datasette_leaflet_geojson-0.8.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e33812f30c759f9591f793d611c4da7acb1bfded5c3a43926f1e28ed18d2bc47 |
|
MD5 | 6392731ebd238607f4aadc256d94474d |
|
BLAKE2b-256 | 9085a8cb0c2de2b5fbe677b714cb6fa245fd71c9b634e93c2baaaa13d0774243 |