Display interactive land cover map
Display voice data map
Analyze video frames to tag objects
Select and visualize language family trees
Ask questions about images
Display Hugging Face logo with loading spinner
Generate animated Voronoi patterns as cloth
Explore interactive maps of textual data
Display interactive empathetic dialogues map
Add vectors to Hub datasets and do in memory vector search.
Ask questions about images directly
Watch a video exploring AI, ethics, and Henrietta Lacks
Rank images based on text similarity
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.
• 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.
pip install streamlit-maplibre
to install the package.import streamlit_maplibre as st_map
to your Streamlit script.st_map.map()
to create a basic map.streamlit run your_script.py
.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.