# opengeos/leafmap

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/opengeos-leafmap).**

3,717 stars · 464 forks · Python · MIT

## Links

- GitHub: https://github.com/opengeos/leafmap
- Homepage: https://leafmap.org
- awesome-repositories: https://awesome-repositories.com/repository/opengeos-leafmap.md

## Topics

`data-science` `dataviz` `folium` `geoparquet` `geopython` `geospatial` `geospatial-analysis` `gis` `ipyleaflet` `jupyter` `jupyter-notebook` `leafmap` `mapping` `plotly` `python` `solara` `streamlit` `streamlit-webapp` `whiteboxtools`

## Description

Leafmap is a Python geospatial visualization library designed for creating interactive maps and performing geospatial analysis within Jupyter environments. It provides a comprehensive set of tools for building interactive map interfaces, browsing and visualizing SpatioTemporal Asset Catalog items, and connecting to PostGIS databases for spatial data rendering.

The project distinguishes itself through a backend-agnostic rendering system that allows users to switch between different mapping engines while maintaining a consistent API. It features specialized capabilities for Cloud Optimized GeoTIFF rendering and a STAC data browser for discovering and retrieving cloud-native geospatial datasets.

The library covers a wide range of analytical and visualization areas, including remote sensing imagery classification, temporal data animation, and comparative map analysis using split-panel views. It also includes utilities for thematic map generation, vector data conversion, and the extraction of building and fire-related statistics.

Interactive maps can be exported as standalone HTML files or embedded directly into Streamlit web applications.

## Tags

### Graphics & Multimedia

- [Interactive Map Generations](https://awesome-repositories.com/f/graphics-multimedia/interactive-map-generations.md) — Generates interactive maps from Python data structures for seamless display in notebooks and web pages. ([source](https://leafmap.org/))
- [Geospatial Visualizations](https://awesome-repositories.com/f/graphics-multimedia/visualization-mapping/geospatial-visualizations.md) — Provides a comprehensive framework for mapping and visualizing data based on geographic coordinates and spatial relationships.
- [Basemap Integrations](https://awesome-repositories.com/f/graphics-multimedia/basemap-integrations.md) — Integrates background map layers using predefined providers or custom tile URLs for geographic context. ([source](https://leafmap.org/bokehmap/))
- [Mapping Engine Abstractions](https://awesome-repositories.com/f/graphics-multimedia/graphics-engines-rendering/rendering/engines/graphics-pipeline-architectures/backend-agnostic-rendering-pipelines/mapping-engine-abstractions.md) — Implements a backend-agnostic rendering system to switch between different mapping engines via a consistent API.
- [Slippy Map Vector Renderers](https://awesome-repositories.com/f/graphics-multimedia/graphics-engines-rendering/rendering/vector-rendering-pipelines/vector-graphics-renderers/slippy-map-vector-renderers.md) — Renders geospatial vector data from data frames or JSON files with interactive tooltips. ([source](https://leafmap.org/bokehmap/))
- [Raster Layer Visualizers](https://awesome-repositories.com/f/graphics-multimedia/raster-layer-visualizers.md) — Displays local or Cloud Optimized GeoTIFFs with configurable bands, colormaps, and value ranges. ([source](https://leafmap.org/bokehmap/))
- [STAC Item Visualizers](https://awesome-repositories.com/f/graphics-multimedia/stac-item-visualizers.md) — Displays multiple geospatial items from a STAC data catalog on an interactive map. ([source](https://leafmap.org/download/))
- [STAC Layer Visualizers](https://awesome-repositories.com/f/graphics-multimedia/stac-layer-visualizers.md) — Visualizes SpatioTemporal Asset Catalog items as tile layers via remote endpoints. ([source](https://leafmap.org/bokehmap/))
- [Tiled Image Loading](https://awesome-repositories.com/f/graphics-multimedia/tiled-image-loading.md) — Implements efficient loading of Cloud Optimized GeoTIFFs by fetching only necessary image chunks from remote servers.
- [Raster Imagery Renderers](https://awesome-repositories.com/f/graphics-multimedia/visualization-mapping/geospatial-visualizations/raster-imagery-renderers.md) — Renders Cloud Optimized GeoTIFFs as interactive raster tile layers with custom band and color settings.
- [Data-Driven Color Mappings](https://awesome-repositories.com/f/graphics-multimedia/data-driven-color-mappings.md) — Transforms numeric or categorical data into colors using continuous or categorical colormaps. ([source](https://leafmap.org/deckgl/))
- [Geospatial Feature Editing](https://awesome-repositories.com/f/graphics-multimedia/geospatial-feature-editing.md) — Provides interactive tools for modifying geospatial geometries and drawing points, lines, and polygons on maps. ([source](https://cdn.jsdelivr.net/gh/opengeos/leafmap@master/README.md))
- [Geospatial Layer Management](https://awesome-repositories.com/f/graphics-multimedia/geospatial-layer-management.md) — Allows interactive switching of basemaps and overlaying of geospatial data from tile and vector services. ([source](https://leafmap.org/))
- [Geospatial Tile Layer Integration](https://awesome-repositories.com/f/graphics-multimedia/graphics-engines-rendering/tile-map-renderers/raster-and-vector-tile-renderers/layer-based-composition/geospatial-tile-layer-integration.md) — Creates bitmap layers from specific tile URLs with adjustable opacity and visibility settings. ([source](https://leafmap.org/deckgl/))
- [Comparative Map Layouts](https://awesome-repositories.com/f/graphics-multimedia/image-editing-processing/image-analysis-tools/comparative-visual-analysis/comparative-map-layouts.md) — Provides split-panel and linked map views for side-by-side comparison of different geospatial datasets.
- [Cross-Library Layer Mapping](https://awesome-repositories.com/f/graphics-multimedia/map-layer-integrations/cross-library-layer-mapping.md) — Translates geospatial data formats into compatible layer definitions for multiple different JavaScript mapping libraries.
- [Raster-Vector Hybrid Pipelines](https://awesome-repositories.com/f/graphics-multimedia/raster-vector-hybrid-pipelines.md) — Combines diverse geospatial data sources like GeoJSON and GeoTIFFs into a single unified map coordinate system.
- [Map Legend Styling](https://awesome-repositories.com/f/graphics-multimedia/visualization-mapping/geospatial-visualizations/legend-displays/map-legend-styling.md) — Creates custom legends and colorbars to represent data values with specific colors and labels. ([source](https://leafmap.org/))
- [Temporal Animation Engines](https://awesome-repositories.com/f/graphics-multimedia/visualization-mapping/geospatial-visualizations/temporal-animation-engines.md) — Implements engines for playing back time-series geospatial data with adjustable speeds and rolling windows.

### Artificial Intelligence & ML

- [Remote Sensing Machine Learning](https://awesome-repositories.com/f/artificial-intelligence-ml/remote-sensing-machine-learning.md) — Integrates deep learning frameworks to process, classify, and analyze satellite and aerial imagery.
- [Satellite Imagery Classification](https://awesome-repositories.com/f/artificial-intelligence-ml/satellite-imagery-classification.md) — Implements machine learning techniques for categorizing features and segmenting satellite imagery. ([source](https://cdn.jsdelivr.net/gh/opengeos/leafmap@master/README.md))

### Data & Databases

- [COG Tile Rendering](https://awesome-repositories.com/f/data-databases/cloud-data-access/cloud-optimized-geotiff-accessors/cog-tile-rendering.md) — Renders Cloud Optimized GeoTIFFs as tile layers from remote endpoints with custom band and color settings. ([source](https://leafmap.org/bokehmap/))
- [Geospatial Catalogs](https://awesome-repositories.com/f/data-databases/dataset-catalogs/geospatial-catalogs.md) — Enables searching and discovering specific geospatial items within STAC catalogs using spatial and temporal filters. ([source](https://leafmap.org/download/))
- [Geospatial Data Catalogs](https://awesome-repositories.com/f/data-databases/geospatial-data-catalogs.md) — Provides tools to search remote registries and access geospatial datasets from cloud providers and public archives. ([source](https://cdn.jsdelivr.net/gh/opengeos/leafmap@master/README.md))
- [Database Connectors](https://awesome-repositories.com/f/data-databases/database-connectors.md) — Connects PostGIS databases to retrieve and render spatial data directly onto interactive maps.
- [Geospatial Feature Retrieval](https://awesome-repositories.com/f/data-databases/geospatial-feature-retrieval.md) — Retrieves building and place data from mapping providers for specified bounding boxes. ([source](https://leafmap.org/download/))
- [Remote Imagery Retrieval](https://awesome-repositories.com/f/data-databases/remote-imagery-retrieval.md) — Fetches agriculture imagery data for specific bounding boxes and years from remote data catalogs. ([source](https://leafmap.org/download/))

### Mobile Development

- [Notebook Map Embeds](https://awesome-repositories.com/f/mobile-development/interactive-map-embeds/notebook-map-embeds.md) — Embeds interactive map components directly into Jupyter notebook cells for real-time visualization.

### Scientific & Mathematical Computing

- [Python Geospatial Visualization Libraries](https://awesome-repositories.com/f/scientific-mathematical-computing/python-geospatial-visualization-libraries.md) — A Python library for creating interactive maps and performing geospatial analysis with minimal code in Jupyter environments.

### User Interface & Experience

- [Interactive Map Components](https://awesome-repositories.com/f/user-interface-experience/interactive-map-components.md) — Provides UI components for rendering geographical map views, including thematic maps and split-panel comparative views.
- [Map View Synchronizations](https://awesome-repositories.com/f/user-interface-experience/map-view-synchronizations.md) — Links the state and viewport of separate map instances to enable side-by-side comparative analysis.
- [Map Viewport Controllers](https://awesome-repositories.com/f/user-interface-experience/map-viewport-controllers.md) — Sets the map viewing window to a specific bounding box defined by minimum and maximum coordinates. ([source](https://leafmap.org/bokehmap/))
- [Split-Panel Map Views](https://awesome-repositories.com/f/user-interface-experience/split-panel-map-views.md) — Builds split-panel maps for side-by-side comparison or linked maps that synchronize interactions. ([source](https://leafmap.org/))

### Part of an Awesome List

- [Spatial Databases](https://awesome-repositories.com/f/awesome-lists/data/spatial-databases.md) — Integrates with PostGIS databases to retrieve and display spatial data directly on interactive maps. ([source](https://cdn.jsdelivr.net/gh/opengeos/leafmap@master/README.md))
- [Geographic Map Visualizations](https://awesome-repositories.com/f/awesome-lists/media/visualization-and-mapping/geographic-map-visualizations.md) — Generates choropleth and heat maps to visualize data values and density across geographic areas. ([source](https://cdn.jsdelivr.net/gh/opengeos/leafmap@master/README.md))
- [Pixel-Level Spatial Analysis](https://awesome-repositories.com/f/awesome-lists/security/image-and-metadata-analysis/raster-image-analysis/pixel-level-spatial-analysis.md) — Allows interactive probing of RGB and data pixel values in raster datasets at specific scales. ([source](https://leafmap.org/))

### Content Management & Publishing

- [Map View Exports](https://awesome-repositories.com/f/content-management-publishing/content-formats-exporting/export-formats/html-exports/map-view-exports.md) — Saves the current map state as a standalone HTML file or returns the HTML content as a string. ([source](https://leafmap.org/bokehmap/))

### Development Tools & Productivity

- [STAC Asset Fetchers](https://awesome-repositories.com/f/development-tools-productivity/asset-downloaders/stac-asset-fetchers.md) — Fetches specific bands or all assets from catalog items using parallel downloads and multi-band merging. ([source](https://leafmap.org/download/))

### DevOps & Infrastructure

- [Visualization Engine Configurations](https://awesome-repositories.com/f/devops-infrastructure/storage-backend-configurations/runtime-configurations/runtime-configuration-backends/processing-backend-configurations/visualization-engine-configurations.md) — Allows users to switch between different rendering engines to change visualization styles and available capabilities. ([source](https://leafmap.org/))

### Web Development

- [UI Component Embeddings](https://awesome-repositories.com/f/web-development/data-app-frameworks/streamlit-connectors/ui-component-embeddings.md) — Displays interactive maps directly within Streamlit web applications as functional UI components. ([source](https://leafmap.org/bokehmap/))
