Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Configuration Language Lock 1.0.2 Minor update available for module config_language_lock (1.0.2). Release: Canvas Override 1.0.1 Minor update available for module canvas_override (1.0.1). Release: Media Remote Image 8.x-1.2 Minor update available for module media_entity_remote_image (8.x-1.2). Release: IDNA Convert Service (punycode) 2.0.4 Minor update available for module idna (2.0.4). Release: Bootstrap Cloud 7.1.3 Minor update available for theme bootstrap_cloud (7.1.3). Release: Token Browser 1.0.2 Minor update available for module token_browser (1.0.2). Release: Varbase Project 11.0.8 Minor update available for module varbase_project (11.0.8). Release: Media Remote Image 2.0.0-beta1 First beta version released for module media_entity_remote_image (2.0.0-beta1). Usage Milestone: Term CSV Export Import Module term_csv_export_import crossed 1,000 active installs. Security Coverage: Module Scout Module module_scout now has official Drupal security advisory coverage.

Leaflet countries

9 sites Security covered

Part of the Leaflet ecosystem · 12 projects

View on drupal.org

This module adds a field type to select a country and provides formatters to display that country highlighted on a map. It also integrates with Views to highlight country-based nodes on a map.

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.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
Jul 2026
Latest release
1 month ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Active

Releases

Version Type Core Release date
2.0.0-beta2 Pre-release 8–11 Jul 29, 2026
2.0.0-beta1 Pre-release 8–10 Jul 29, 2026