Giter VIP home page Giter VIP logo

streamlit-l7vp's Introduction

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

streamlit-l7vp's People

Contributors

lvisei avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.