Closed (works as designed)
Project:
Geofield Map
Version:
11.1.4
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
27 Feb 2026 at 12:29 UTC
Updated:
1 Mar 2026 at 18:47 UTC
Jump to comment: Most recent
Comments
Comment #3
antonio nunez commentedComment #4
antonio nunez commentedThe MR fixes the Leaflet initialization by ensuring the widget always enters the Leaflet code path when Leaflet is the selected map library, and adds the missing library dependency.
Comment #6
itamair commentedThanks @antonio_nunez for this tip, but everything seems to be working fine on this side of the Geofield Map 11.1.4 module.
I tested what you suggested and couldn't reproduce what you reported, even with a clean install of Drupal + the Geofield Map module.
Furthermore, your changes would break some of the module's logic, as the following two conditions are required:
If gmap_geocoder is not TRUE, the Google library must still be loaded to handle the Google Maps-based geocoding functionality (gmap_api_key).
In the Geofield Map module, the Leaflet library is loaded correctly here:
https://git.drupalcode.org/project/geofield_map/-/blob/11.0.x/src/Elemen...
which ultimately relies on the one embedded in the Leaflet module, if present.
So I'm closing this with the "Works as designed" statement,
and adding a small change that still makes the initial loading of the Leaflet library stronger/prioritizes ...
Providing anyway a credit to you for this contribution ...
Comment #8
itamair commentedNew Geofield Map release 11.1.6 implements this last commit: https://git.drupalcode.org/project/geofield_map/-/commit/eed1aba03e88e16...