Skip to main content

Python3 binding for @AntV/L7VP geospatial visual analysis tool.

Project description

English | 简体中文

PyL7VP

🌍 Python3 binding for @AntV/L7VP geospatial visual analysis tool.

Latest Stable Version build Status Pypi Download

Installation

$ pip install pyl7vp

Usage

Jupyter Notebook and JupyterLab

from pyl7vp import L7VP

l7vp_map = L7VP(height = 600, datasets=[], config=None)

# Add dataset to map
l7vp_map.add_dataset({"id": "my_dataset", "type": 'local', "data": []})

# Set config
l7vp_map.set_config({
  "map": {
    "type": "Gaode",
    "config": {
            "zoom": 3,
            "center": [120.153576, 30.287459],
            "style": 'dark',
        },
  },
})

# print datasets and config
l7vp_map.datasets
l7vp_map.config

# Display map
l7vp_map.show()

Save to HTML File

from pyl7vp import L7VP

l7vp_map = L7VP(height = 600)

l7vp_map.set_config({
  "map": {
    "type": "Gaode",
    "config": {
            "zoom": 3,
            "center": [120.153576, 30.287459],
            "style": 'dark',
        },
  },
})

# save to html file
l7vp_map.save_to_html("map.html")

Examples

API

L7VP

L7VP(height: int = 600, datasets: list = [], config: dict = None): return an instance.

  • add_dataset(dataset: dict): add an dataset to map.

  • set_config(config: dict): set the config into instance.

  • show(read_only: bool = False): show map on Jupyter Notebook or JupyterLab preview.

  • save_to_html(file_name: str = "map.html", read_only: bool = False,): save to html file.

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

Apache-2.0

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

pyl7vp-0.0.1.tar.gz (14.2 kB view details)

Uploaded Source

Built Distribution

pyl7vp-0.0.1-py3-none-any.whl (14.5 kB view details)

Uploaded Python 3

File details

Details for the file pyl7vp-0.0.1.tar.gz.

File metadata

  • Download URL: pyl7vp-0.0.1.tar.gz
  • Upload date:
  • Size: 14.2 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.16 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

Hashes for pyl7vp-0.0.1.tar.gz
Algorithm Hash digest
SHA256 4f574cbbc3d83fa4b98d82dd4dd5cde5e69fdd799d81b2fd2fc8e22426354b0b
MD5 ace397fd6ebd62cfa229224cd9a1e101
BLAKE2b-256 ab76bf8ad7c3f12e85a9f17b7ccd4219dc68df22c9951069ff394702d76bf7a0

See more details on using hashes here.

File details

Details for the file pyl7vp-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: pyl7vp-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 14.5 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.16 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

Hashes for pyl7vp-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f2dbd2b1ac6fade6b2417a53ea12282b70e8a4a8e666f36ba3c34e2761accf92
MD5 b6bf21d34761f126ae28efdab8cce8f8
BLAKE2b-256 b6f87105598e191cad547c174db5e49ab12a54f7788aab7a982c5226b55e0478

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page