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 ๐
pip install streamlit-l7vp
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)
- 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 see the pyl7vp docs.
git clone https://github.com/lvisei/streamlit-l7vp.git
# dev install from folder containing setup.py
pip install -e .
Update version
in setup.py
version="0.0.1"
Build and publish
python setup.py upload