Python3 binding for @AntV/L7VP geospatial visual analysis tool.
Project description
English | 简体中文
PyL7VP
🌍 Python3 binding for @AntV/L7VP
geospatial visual analysis tool.
Installation
$ pip install pyl7vp
Usage
Jupyter Notebook and JupyterLab
import pandas as pd
from pyl7vp import L7VP
l7vp_map = L7VP(height = 600)
# data
df = pd.DataFrame(
{'longitude': [105.005, 104.602, 103.665, 105.275],
'latitude': [32.349, 32.067, 31.29, 32.416],
'mag': [5.2, 3.0, 6.0, 2.0]
})
# add dataset to map
l7vp_map.add_dataset({"id": "my_dataset", "type": 'local', "data": df})
# Set config
l7vp_map.set_config({
"map": {
"type": "Gaode",
"config": {
"zoom": 7,
"center": [104.615357, 32.068745],
"style": 'dark',
},
},
})
# display map
l7vp_map.show()
Save to HTML File
from pyl7vp import L7VP
l7vp_map = L7VP(height = 600)
# save to html file
l7vp_map.save_to_html("map.html")
User Guide
Local Development
Install Jupyter
# Using pip
pip install jupyter
# or Using conda
# conda install jupyter
Clone code
git clone https://github.com/antvis/L7VP.git
Setup jupyter
Install python module
cd bindings/pyl7vp
# dev install from folder containing setup.py
pip install -e .
Start jupyter notebook
cd notebooks
jupyter notebook
Release a new version
Update version
in bindings/pyl7vp/pyl7vp/meta.py
__version__ = "0.0.1"
Build and publish
python setup.py upload
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyl7vp-0.0.8.tar.gz
(15.1 kB
view details)
Built Distribution
pyl7vp-0.0.8-py3-none-any.whl
(15.4 kB
view details)
File details
Details for the file pyl7vp-0.0.8.tar.gz
.
File metadata
- Download URL: pyl7vp-0.0.8.tar.gz
- Upload date:
- Size: 15.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/1.0.0 urllib3/1.26.18 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6bf2c2124ed41f05862783d60e1430c8d7d4f0fc3f20b073e3df500511a1cfc9 |
|
MD5 | 3651c6983298d734ef945f1afee897fb |
|
BLAKE2b-256 | 6cade1e816a686bd00575edc66780098cd3e763a9a575ec1b92f43bb9fc1535c |
File details
Details for the file pyl7vp-0.0.8-py3-none-any.whl
.
File metadata
- Download URL: pyl7vp-0.0.8-py3-none-any.whl
- Upload date:
- Size: 15.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/1.0.0 urllib3/1.26.18 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8544b813bcd537f69463aeb4d50d9c7e58dad3338788d40bcde402a840c0234e |
|
MD5 | 5926319cbd507b040031696b977a192c |
|
BLAKE2b-256 | 4d805d1d8df26fadf2ef6c6156dad5d25caea05a6f1469c182c8897efa254ef6 |