leaflet_openfreemap
No security coverage
Adds OpenFreeMap vector tile map styles to the
Leaflet module. OpenFreeMap is a
fully open-source, free-to-use tile service with no API key required.
Three styles are provided:
- **Liberty** — full-detail default style (recommended)
- **Positron** — ultra-clean, minimal style
- **Bright** — high-contrast style
Tiles are rendered using MapLibre GL via the `leaflet-maplibre-gl` plugin,
which is bundled with the Leaflet contrib module.
Requirements
- Leaflet 10.x
(must include MapLibre GL JS and leaflet-maplibre-gl — available from
Leaflet bundled libraries) - Drupal 10.2+ or Drupal 11
Installation
Enable the module with Drush:
ddev drush pm:enable leaflet_openfreemap
No API key or external account is required.
Configuration
After enabling the module, the three OpenFreeMap map styles will appear in any
Leaflet map selector (e.g. Leaflet formatter, Geofield map widget). Select one
of the OpenFreeMap options from the map dropdown.