datasette-leaflet-geojson-0.8
توضیحات
A Datasette plugin that renders GeoJSON columns using Leaflet
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | datasette-leaflet-geojson-0.8 |
| نام | datasette-leaflet-geojson |
| نسخه کتابخانه | 0.8 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Simon Willison |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/simonw/datasette-leaflet-geojson |
| آدرس اینترنتی | https://pypi.org/project/datasette-leaflet-geojson/ |
| مجوز | Apache License, Version 2.0 |
# datasette-leaflet-geojson
[](https://pypi.org/project/datasette-leaflet-geojson/)
[](https://github.com/simonw/datasette-leaflet-geojson/releases)
[](https://github.com/simonw/datasette-leaflet-geojson/actions?query=workflow%3ATest)
[](https://github.com/simonw/datasette-leaflet-geojson/blob/main/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?MNG_AGENCY=Palo+Alto%2C+City+of

## 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`:
```json
{
"plugins": {
"datasette-leaflet-geojson": {
"default_maps_to_load": 20
}
}
}
```
Then run Datasette with `datasette mydb.db -m metadata.json`.
نیازمندی
| مقدار | نام |
|---|---|
| >=0.54 | datasette |
| >=0.2 | datasette-leaflet |
| - | pytest |
| - | pytest-asyncio |
نحوه نصب
نصب پکیج whl datasette-leaflet-geojson-0.8:
pip install datasette-leaflet-geojson-0.8.whl
نصب پکیج tar.gz datasette-leaflet-geojson-0.8:
pip install datasette-leaflet-geojson-0.8.tar.gz