Streamlit Maplibre
Display interactive land cover map
You May Also Like
View AllKripi
Explore a virtual wetland environment
Paligemma Doc
Try PaliGemma on document understanding tasks
Taxonomy4CL
Display and navigate a taxonomy tree
Open WebUI
Display a customizable splash screen with theme options
HTML5.PyVis.Graph.Visualization
Generate architectural network visualizations
allenai/soda
Explore interactive maps of textual data
Clembench
Browse and compare language model leaderboards
Gs Dynamics
Visualize 3D dynamics with Gaussian Splats
WB-Flood-Monitoring
Monitor floods in West Bengal in real-time
Rescuenet Damaged Building Detection
Upload images to detect and map building damage
Vision-Language App
Image captioning, image-text matching and visual Q&A.
Interactive Spider
Generate Dynamic Visual Patterns
What is Streamlit Maplibre ?
Streamlit Maplibre is a Streamlit component designed for displaying interactive land cover maps. It leverages the capabilities of Maplibre GL JS to bring dynamic and customizable mapping features directly into Streamlit applications. This tool is particularly useful for visualizing geospatial data, allowing users to interact with maps in real time.
Features
β’ Interactive Mapping: Create and display customizable interactive maps with markers, polygons, and other overlays.
β’ Lightweight: Built to be efficient and fast, ensuring smooth performance in Streamlit apps.
β’ Customizable: Easily tailor map styles, markers, and other elements to fit your needs.
β’ Integration with Streamlit: Seamlessly integrate maps into Streamlit workflows for a unified user experience.
β’ Real-Time Interaction: Supports zooming, panning, and clicking for an engaging user experience.
How to use Streamlit Maplibre ?
- Install the Package: Run
pip install streamlit-maplibreto install the package. - Import the Module: Add
import streamlit_maplibre as st_mapto your Streamlit script. - Initialize the Map: Use
st_map.map()to create a basic map. - Add Markers or Layers: Customize the map by adding markers, polygons, or other geospatial data.
- Display the Map: The map will be rendered automatically in your Streamlit app.
- Run the App: Execute your Streamlit script with
streamlit run your_script.py.
Frequently Asked Questions
What is the purpose of Streamlit Maplibre?
Streamlit Maplibre is designed to enhance Streamlit applications with interactive mapping capabilities, making it easier to visualize and explore geospatial data.
How do I customize the map style?
You can customize the map style by passing CSS or JSON styles to the map() function. For example, st_map.map(style="mapbox://styles/mapbox/streets-v12").
Is Streamlit Maplibre compatible with all Streamlit versions?
Streamlit Maplibre is compatible with most modern versions of Streamlit. Ensure you have the latest version installed for optimal performance.