Skip to main content

An wrapper of the threeJS globe to display points and labels on a globe.

Project description

streamlit_globe

Streamlit Globe is a wrapper around globe.gl and provides some simple data visualization functionality in Streamlit. In the current release points and labels are implemented.

Usage

  • You either have to provide pointsData or labelsData (or both) to render the globe.
  • Watch out to create the correct object structure for both arrays.
  • daytime parameter accepts 'day' or 'night'
  • You have to provide a width and a height, this is not determined automatically by streamlit.

Example usage

from streamlit_globe import streamlit_globe

st.subheader("Globe")
pointsData=[{'lat': 49.19788311472706, 'lng': 8.114625722364316, 'size': 0.3, 'color': 'red'}]
labelsData=[{'lat': 49.19788311472706, 'lng': 8.114625722364316, 'size': 0.3, 'color': 'red', 'text': 'Landau'}]
streamlit_globe(pointsData=pointsData, labelsData=labelsData, daytime='day', width=800, height=600)

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_globe-0.2.1.tar.gz (4.7 MB view hashes)

Uploaded Source

Built Distribution

streamlit_globe-0.2.1-py3-none-any.whl (4.7 MB 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