Leaflet

Leaflet plugins database

While Leaflet is meant to be as lightweight as possible, and focuses on a core set of features, an easy way to extend its functionality is to use third-party plugins. Thanks to the awesome community behind Leaflet, there are literally hundreds of nice plugins to choose from. Within each section, they’re sorted by GitHub stars.


Ready for Leaflet 2

Plugins that already work with Leaflet 2.0. Ported yours? Mark it with compatible-v2: true.

Tile & image layers

The following plugins allow loading different maps and provide functionality to tile and image layers.

Basemap providers

Ready-to-go basemaps, with little or no configuration at all.

Raster formats & large images

Load basemaps and GIS raster layers in formats beyond plain tile URLs, such as WMS, WMTS, GeoTIFF and MBTiles, or show really big non-map images, such as IIIF and DeepZoom.

Tile & image effects

The following plugins change the way that tile or image layers are displayed in the map.

Tile loading

The following plugins change the way that tile layers are loaded into the map.

Vector tiles & GL maps

Display vector tiles, or add a MapLibre or Mapbox GL map to Leaflet as a layer.

Overlay data

The following plugins provide new ways of loading overlay data (GIS vector data): points, lines and polygons.

Data formats

Load your own data from various GIS formats.

Realtime & dynamic data

Load data that keeps updating on the map, from live tracking to periodic refreshes.

Grids & boundaries

Overlays that need no data of your own: graticules and reference grids, day and night, time zones, and ready-made boundary layers.

Data providers

Load overlay data from third-party services. See also basemap providers.

Integration

Frameworks & build systems

Ease your development integrating Leaflet into a development framework or automating some of the javascript/CSS work for complex applications.

CMS & app integrations

Leaflet maps in WordPress, Drupal, Joomla, forums and other apps, without writing code.

Overlay display

The following plugins provide new ways of displaying overlay data information.

Markers & icons

New kinds of markers and icons: icon fonts, SVG and canvas markers, photos, directional symbols, and markers for points outside the view.

Lines & shapes

Draw curves, geodesic lines, arcs and new shapes, or decorate lines with arrows, patterns and offsets.

Styling & labels

Style overlays from data, fill them with patterns, or label them. Leaflet users versed in GIS also know these as symbolizers.

Animations

These plugins animate markers or some geometries. See also time & elevation.

Clustering & decluttering

When you are displaying a lot of data, these plugins will make your map look cleaner.

Heatmaps

These plugins create heatmaps and heatmap-like visualizations from vector data.

Data visualization

Powerful multi-purpose libraries for data visualization.

Overlay interaction

The following plugins enable users to interact with overlay data: edit geometries, select areas or features, interact with the time dimension, search features and display information about them.

Edit geometries

Allows users to create, draw, edit and/or delete points, lines and polygons.

Time & elevation

Most data is two-dimensional (latitude and longitude), but some data has more dimensions (altitude and/or time). The following plugins help users navigate these extra dimensions.

Search & filter

Search for markers and features on the map, or filter them by their properties. To search for addresses and places, see geocoding.

Hover, click & popups

Make overlays easier to hover and click, find what is under the cursor, and enhance popups and tooltips.

Area selection

Let users select an area on the map, or select features by drawing around them.

Map interaction

New ways to interact with the map itself.

Layer switching & legends

The following plugins enhance or extend LayersControl, or add legends for the layers on the map.

Change the way the user moves around the map: zoom and pan controls, map rotation, saved and shared views, fullscreen, and control over scroll and touch gestures.

Minimaps & synced maps

Display two maps at once. One of them might be a different size and zoom level, usable as a minimap to aid with navigation.

Location & coordinates

Show the user’s location, display the coordinates under the cursor, or let the user pick a location.

Measurement

Allow the user to measure distances or areas, or show a scale.

Buttons & menus

Buttons, toolbars, context menus, sliders and other custom controls.

Sidebars, windows, messages and loading indicators.

Print or export your map.

Analysis & services

Geoprocessing & projections

Geometry operations, spatial indexes and antimeridian handling, plus support for other projections and coordinate systems.

Routing

The following plugins use external services to calculate driving or walking routes.

Geocoding

External services that transform an address or the name of a place into latitude and longitude (or vice versa).

Develop your own

Leaflet keeps it simple. If you can think of a feature that is not required by all Leaflet users, and you can write the JavaScript code in a reusable way, you’ve got yourself a Leaflet plugin already.

There are no hard requirements on how to create your own plugin, but all developers are encouraged to read the recommendations in the plugin guide.

Once your plugin is ready, you can submit it: copy template.md into the category folder in /docs/_plugins/ that fits your plugin, fill it in, and send a pull request to our GitHub repository. If your plugin works with Leaflet 2, set compatible-v2: true to have it listed in the Ready for Leaflet 2 section too.