Draw polygons on maps in Datasette
Project description
datasette-leaflet-freedraw
Draw polygons on maps in Datasette
Installation
Install this plugin in the same environment as Datasette.
$ datasette install datasette-leaflet-freedraw
Usage
This plugin looks for input fields on a page with names ending in _freedraw
- it replaces them with a Leaflet map interface that includes the FreeDraw Leaflet plugin.
Configure canned queries with inputs called freedraw
or ending in _freedraw
to trigger the map interface.
Development
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
cd datasette-leaflet-freedraw
python3 -mvenv venv
source venv/bin/activate
Or if you are using pipenv
:
pipenv shell
Now install the dependencies and tests:
pip install -e '.[test]'
To run the tests:
pytest
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
Close
Hashes for datasette-leaflet-freedraw-0.1.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 062526ebf18955673616fa00f2d207b07e1c9348950e4b8bc603108ce0b10877 |
|
MD5 | 1a519107e495304b16f38ddb81389a09 |
|
BLAKE2b-256 | cb79c0c33f67b102c8641bb6c83ea4e0d539e5ae8f943080cd38aa86cff270cd |
Close
Hashes for datasette_leaflet_freedraw-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a6316c0e5e530e9898e0f2bcb6e08269dd861f89b358672ab1fe8d49111248c6 |
|
MD5 | 21f26d120c7e4a2ee36c4f475bdefc2a |
|
BLAKE2b-256 | 095a6899a1089ad5a7770abacd62af9155b29028d71faa2e6ab9482437477b14 |