Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Leaflet countries

Security covered Under active development 8 sites

Part of the Leaflet ecosystem · 14 projects

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.

Ask your assistant about Leaflet countries

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

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
3
Tracked since
Mar 2024
Latest release
2 months ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
2.0.0-beta2 Pre-release 8–11 Jul 29, 2026
2.0.0-beta1 Pre-release 8–10 Jul 29, 2026
2.x-dev Dev 8–11 Mar 14, 2024