Skip to main content

Streamlit Component for rendering L7VP maps

Project description

streamlit-l7vp

L7VP is an geospatial intelligent visual analysis and application development tools.

This project was created to allow us to render L7VP maps in streamlit.🌍 Live Demo 🌍

Latest Stable Version Test Status

Installation

pip install streamlit-l7vp

Usage

import streamlit as st
from pyl7vp import L7VP
from streamlit_l7vp import l7vp_static
import pandas as pd

df = pd.DataFrame(
    {'id': ['a', 'b', 'c'],
     'point_latitude': [31.2384, 31.2311, 31.2334],
     'point_longitude': [108.30948, 108.30231, 108.30238],
     'value': [5, 11, 9],
     'time': ['2019-08-01 12:00:00', '2019-08-01 12:05:00', '2020-08-01 11:55:00']
     })

l7vp_map = L7VP(height = 600)
# Add dataset to map
l7vp_map.add_dataset({"id": "my_dataset", "type": 'local', "data": df})


l7vp_static(l7vp_map)

API

l7vp_static parameters

  • fig: pyl7vp.L7VP map figure.
  • height: Fixed pixel height of the map. Optional, might result in non-optimal layout on some devices. By default the map height is determined by the l7vp figure height.
  • width: Fixed pixel width of the map. Optional, by default the map width adjusts to the streamlit layout.
  • read_only: Disables the side panel for map customization, default False.

L7VP API

L7VP API see the pyl7vp docs.

Local Development

Clone code

git clone https://github.com/lvisei/streamlit-l7vp.git

Install python module

# dev install from folder containing setup.py
pip install -e .

Release a new version

Update version in setup.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

streamlit-l7vp-0.0.1.tar.gz (7.3 kB view hashes)

Uploaded Source

Built Distribution

streamlit_l7vp-0.0.1-py3-none-any.whl (7.3 kB view hashes)

Uploaded Python 3

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