Leaflet
by Volodymyr Agafonkin and contributors · Library · also known as Leaflet.js
Lightweight open-source JavaScript library for interactive tile-based web maps with markers, vector layers and a large plugin ecosystem
Overview
Leaflet is an open-source JavaScript library for building interactive maps in the browser, created by Volodymyr Agafonkin and maintained by a community of contributors. It renders raster tile layers from any XYZ or WMS source, draws markers, popups, polylines, polygons and GeoJSON overlays, and handles touch and keyboard interaction with a small footprint and no dependencies. Hundreds of plugins add clustering, heatmaps, drawing, routing and vector-tile support, and wrappers exist for React, Vue and Python (Folium, ipyleaflet). It is the common choice for dashboards and research pages that need an OSM base map with a few overlays. Leaflet does not include map data or tile hosting, renders raster tiles rather than styled vector tiles by default, and depends on plugins for 3D, rotation and heavy vector workloads.
Capabilities
- Raster tile layers from XYZ and WMS sources
- Markers, popups, vector shapes and GeoJSON layers
- Mobile-friendly touch and keyboard interaction
- Plugin ecosystem for clustering, drawing, heatmaps and vector tiles
- Framework wrappers for React, Vue and Python
Typical workflows
- Embed an OSM base map with clustered property markers in a web page
- Render GeoPandas output as an interactive map through Folium
Strengths
- Small, dependency-free and BSD-licensed
- Works with any tile provider
- Large plugin and tutorial base
Limitations
- Raster-first; vector tiles and rotation need plugins
- No bundled data or tile hosting
- Less suited to heavy client-side vector rendering
Prerequisites
- A tile source such as OSM-derived tiles or a commercial provider
Who it is for
- Web developers
- Researchers publishing interactive maps
Alternatives & comparison
MapLibre GL renders vector tiles with WebGL and supports rotation and 3D, at the cost of a heavier runtime; Leaflet is simpler for raster tiles and overlays. Mapbox and Google Maps Platform are hosted services with their own SDKs and metered pricing.
- D3
Modular JavaScript library for bespoke, data-driven web graphics: scales, axes, shapes, layouts, geo projections, transitions and DOM selections
Open sourceOpen source - Google Maps Platform
Google's commercial suite of mapping APIs: maps and Street View embedding, Places, Geocoding, Routes and Distance Matrix, billed per request
ProprietaryUsage-based - Mapbox
Commercial mapping platform with vector tiles, map styling, geocoding, directions and SDKs for web, iOS and Android, billed by usage
ProprietaryFreemium - MapLibre
Open-source vector-tile map renderers for web (GL JS) and native platforms, forked from Mapbox GL and governed by a community organisation
Open sourceOpen source
Sources & verification
Primary sources consulted for this record. Claims are tied to the fields each source supports; the automated link checker re-verifies every URL on a schedule.
- LicenseLICENSE (BSD 2-Clause)checked Nov 1, 2026
https://github.com/Leaflet/Leaflet/blob/main/LICENSE
Supports: license_spdx, source_model
- Official documentationchecked Nov 1, 2026
- Official documentationchecked Nov 1, 2026
- Official sitechecked Nov 1, 2026
- Confidence
- High
- Reviewed
- Nov 1, 2026
- Links
- Verified · Nov 2, 2026
Spotted an error?
More in GIS & mapping
GeoPandas
GeoPandas developers (NumFOCUS affiliated) · GIS & mapping
Python library extending pandas with geometry columns, spatial operations, reprojection, spatial joins and file I/O for vector geodata
PostGIS
PostGIS Project Steering Committee (OSGeo) · GIS & mapping
Spatial extension for PostgreSQL adding geometry, geography and raster types with indexing and hundreds of SQL functions
QGIS
QGIS.org association · GIS & mapping
Open-source desktop GIS for viewing, editing, analysing and publishing vector and raster geodata, extensible with Python plugins
OpenStreetMap
OpenStreetMap Foundation · GIS & mapping
Collaboratively edited world map database released under the ODbL, with planet files, an editing API and derived tiles and extracts
H3
Uber Technologies (open-source project) · GIS & mapping
Hexagonal hierarchical geospatial indexing system from Uber with a C core and bindings for Python, JavaScript, Java and SQL engines
Geocodio
Dotsquare LLC (Geocodio) · GIS & mapping
Geocoding API and spreadsheet service for the US and Canada with batch processing and data appends such as census, districts and time zones