Drupal is a registered trademark of Dries Buytaert
drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! bootstrap 8.x-3.40 Minor update available for theme bootstrap (8.x-3.40). menu_link_attributes 8.x-1.7 Minor update available for module menu_link_attributes (8.x-1.7). eca 3.1.1 Minor update available for module eca (3.1.1). layout_paragraphs 2.1.3 Minor update available for module layout_paragraphs (2.1.3). ai 1.3.3 Minor update available for module ai (1.3.3). ai 1.2.14 Minor update available for module ai (1.2.14). node_revision_delete 2.0.3 Minor update available for module node_revision_delete (2.0.3). moderated_content_bulk_publish 2.0.52 Minor update available for module moderated_content_bulk_publish (2.0.52). klaro 3.0.10 Minor update available for module klaro (3.0.10). klaro 3.0.9 Minor update available for module klaro (3.0.9). layout_paragraphs 2.1.2 Minor update available for module layout_paragraphs (2.1.2). geofield_map 11.1.8 Minor update available for module geofield_map (11.1.8).

leaflet

28,677 sites Security covered
View on drupal.org

Drupal advanced integration with the
Leaflet JS mapping library.

A Modern, Lightweight Open-Source JavaScript Library for Interactive Web Mapping

Drupal Leaflet module is dependant from the
Geofield module.

> 👉 LIVE DEMO <


Drupal Leaflet Showcase

Some Cool Websites using Drupal Leaflet


MOST RELEVANT LATEST NEWS

Leaflet Version 10

Drupal Community documentation (WIP)

Featured options and functionalities

  • Easy-to-use API for extended Leaflet map definition and customisation;
  • Field widget with Leaflet-Geoman
    integration for creating and editing Points and Geometries (LineString, Polygon);
  • GeoJSON overlays (external and internal sources) on the widget map as visual
    snapping references for precise drawing;
  • Popups and Tooltips on map features;
  • Multi-layer base map control and overlay layers control via Drupal Views grouping;
  • Dynamic marker icons and path/geometry styling with Token and replacement-pattern support;
  • Marker clustering via Leaflet.markercluster;
  • Bundled map controls: gesture handling (GestureHandling),
    reset view (ResetView),
    fullscreen (FullScreen),
    and user location (Locate);
  • Feature additional properties for advanced and dynamic customisation of map
    and feature rendering logic;
  • Address search geocoding with autocomplete (requires Geocoder module);
  • Multiple Leaflet maps (formatters, Views, and widgets) on the same page;
  • Drupal hooks for altering map definitions, features, and rendering.

Installation and Use

Require/Download the Leaflet module using Composer, which is simply running
the following command from your project package root (where the main
composer.json file is sited):

composer require drupal/leaflet

which will also download the required Geofield Module
dependency (and GeoPHP library).

Read the instructions in the Readme.md file for further details, on how to
enable the Leaflet module and its submodules.

Additional Drupal Integrations

Leaflet module works well with the following modules;

D8 version started by RdeBoer of flink, and evolved to maturity by Itamair.

Leaflet Version 7

The Leaflet module features:

  • Field formatter that can show a map for fields that contain geospatial data.
  • Views integration that plots data on a map (using the sub module Leaflet Views).
  • Lightweight and easy to use API for defining maps and displaying data on a map.

Some modules that build on Leaflet, adding various features:

  • Leaflet More Maps: adds over 20 map styles, selected at the flick of a drop-down
  • Leaflet Label: alternative tool tip hovers for polygons and line strings
  • Leaflet Hash: bookmarking for maps, appends a hash of current map center and zoom to the URL, so you save and restore the "view port"
  • Leaflet MarkerCluster: makes large marker populations easier to navigate through animated clustering and drill-down capability
  • IP Geolocation Views & Maps: adds a swag of cool features such as centering options, markers colour-coded by any field in your View, cross-highlighting between content and map, geocoding and reverse geocoding options.
  • Many more...

D7 version originally developed by ThinkShout and @pvhee (from Marzee Labs) with lots of help from the community.

Activity

Total releases
34
First release
Dec 2024
Latest release
1 month ago
Release cadence
14 days
Stability
94% stable

Release Timeline

Releases

Version Type Release date
10.4.4 Stable Feb 23, 2026
10.4.3 Stable Feb 18, 2026
10.4.2 Stable Feb 5, 2026
10.4.1 Stable Jan 10, 2026
10.4.x-dev Dev Jan 10, 2026
10.4.0 Stable Jan 10, 2026
10.3.12 Stable Jan 10, 2026
10.3.11 Stable Oct 29, 2025
10.3.10 Stable Oct 3, 2025
10.3.9 Stable Sep 2, 2025
10.3.8 Stable Aug 31, 2025
10.3.7 Stable Jul 24, 2025
10.3.6 Stable Jul 24, 2025
10.3.5 Stable Jul 6, 2025
10.2.50 Stable Jun 27, 2025
10.3.4 Stable Jun 27, 2025
10.3.3 Stable Jun 23, 2025
10.3.1 Stable Jun 18, 2025
10.2.49 Stable Jun 18, 2025
10.3.0 Stable Jun 13, 2025
10.2.48 Stable May 25, 2025
10.2.47 Stable May 24, 2025
10.3.x-dev Dev May 15, 2025
10.2.46 Stable Apr 30, 2025
10.2.45 Stable Apr 22, 2025
10.2.44 Stable Apr 13, 2025
10.2.43 Stable Mar 4, 2025
10.2.41 Stable Feb 19, 2025
10.2.40 Stable Feb 16, 2025
10.2.39 Stable Feb 16, 2025
10.2.38 Stable Feb 9, 2025
10.2.37 Stable Feb 8, 2025
10.2.36 Stable Feb 3, 2025
10.2.29 Stable Dec 4, 2024