Drupal Leaflet 10.3.x Adds GeoJSON Overlay Support to Map Widgets
The Drupal Leaflet module has released version 10.3.x, introducing support for GeoJSON overlays in Leaflet Map Widgets. Announced by Italo Mairo, this update brings a major enhancement to geospatial content editing in Drupal by allowing read-only overlays that improve accuracy and interactivity during geometry creation and editing.
This release is fully backward compatible with the 10.2.x branch, making upgrades straightforward. Each widget instance now includes a configuration section for adding GeoJSON overlays from a variety of sources including static content, external URLs, and internal Drupal fields such as `string_long`
, `link`
, and `json`
.
The new overlay system supports custom styling using Leaflet Path options. Points are rendered as styled circle markers that do not conflict visually with standard Leaflet markers. Maps can automatically extend their boundaries to fit overlay features, and editors can snap to overlay geometries while in edit mode. Overlay visibility can be toggled through the built-in Leaflet Layer Control.
Overlays can be configured using static GeoJSON data, external sources, or internal content. The Views GeoJSON module can be used to generate internal endpoints from existing Drupal content, making it easy to add dynamic overlays to maps.
This feature brings Drupal closer to professional-grade web GIS by integrating advanced spatial tools directly into the editorial interface.
For more information, visit: https://www.drupal.org/project/leaflet