Drupal is a registered trademark of Dries Buytaert
Field Group 4.1.0-alpha4 New alpha version released for module field_group (4.1.0-alpha4). CKEditor 5 Plugin Pack 1.5.4 Minor update available for module ckeditor5_plugin_pack (1.5.4). CKEditor 5 Premium Features 1.8.3 Minor update available for module ckeditor5_premium_features (1.8.3). Drupal Canvas 1.9.0 Minor update available for module canvas (1.9.0). CKEditor 4 LTS - WYSIWYG HTML editor 1.0.5 Minor update available for module ckeditor_lts (1.0.5). Dxpr Theme 8.1.4 Minor update available for theme dxpr_theme (8.1.4). Protected Content 10.1.123 Minor update available for module proc (10.1.123). OpenFed 13.6.6 Minor update available for distribution openfed (13.6.6). CKEditor 4 LTS - WYSIWYG HTML editor 7.x-1.28 Module ckeditor_lts updated after 17 months of inactivity (7.x-1.28). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

Introduction

When dealing with country data its useful to be able to highlight a country or a set of countries on a map. This module provides a field formatter which can display a single country highlighted on a map. It also integrates with Views which allows you to highlight your country based nodes as countries on a map.

About this module

This module provides:

  • A new field type called leaflet_countries which allows a user to select a country
  • Two field formatters for the new field type:
    • A formatter which displays the country on a leaflet map
    • A formatter which displays the three letter country code

Installation

Instructions are in the README.md. Composer is strongly recommended for installing the dependencies.

Dependencies

The module depends on the leaflet module and leaflet library to render the maps. There is also a dependency on the leaflet_topojson module which provides TopoJSON integration with the leaflet library. The dependencies are handled by composer when installing.

Usage

Instructions are in the README.md

Recommended modules

3rd party libraries and licensing

https://github.com/mledoze/countries - License

Credit

Thanks to the very useful library https://github.com/mledoze/countries which makes installing this much easier.

Activity

Total releases
2
First release
Jul 2026
Latest release
1 hour ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Active

Releases

Version Type Release date
2.0.0-beta2 Pre-release Jul 29, 2026
2.0.0-beta1 Pre-release Jul 29, 2026