Further Leaflet code refactoring and fixes, to properly set Leaflet Map option, and eventually nicely fallback to the new defaut/base OpenStreetMap embedded in the module
(fix: #3586903 Change OSM Mapnik label to OpenStreetMap")
leaflet.drupal.js enhanchements. definition of Drupal.Leaflet.prototype.create_geometry_base_options function and provision of base options in every Leaflet geometry type creation, including: title, className, alt, group_label
#3535472: Allow another module to override the LeafletDefaultFormatter field formatter. feat: Allow another module to override the LeafletDefaultFormatter field formatter.
Remove the arbitrary / forced alteration of Geofield ValueTitle property, for better communication (i.e.) in case of Required field validation error and Geofield Value element hidden.
leaflet.api.php: added Map Tiler integration examples for hook_leaflet_map_info #3453183: Error: Call to a member function getDatasources() feat: Error: Call to a member function getDatasources()
Issue #3543429: Warning: Trying to access array offset on true LeafletService.php
Issue #3537846: Undefined array key 0 when chosing a grouping field
leaflet_views.style.schema.yml completed / fixed on the "grouping" (Overlays - Leaflet Grouping) sequence
Addition of hook_leaflet_views_features_alter() to allow the adjustment of the array representing a leaflet single features.
phpcs fixes
LeafletMap View Style render: more correct features and groups sorting by 'sortByWeightElement' with usort in place of uasort
Drupal.org documentation page html content updates with new Drupal Leaflet Choropleth module mention and reference
Maplibre-gl libraries updated:
- maplibre-gl-js library updated to version 5.6.1 (latest)
- leaflet-maplibre-gl library updated to version 0.1.1 (latest)
Issue #3530175: Ajax popups not working for anonymous users
Fixed / Refactored render methods without $is_root_call (=== TRUE)
('Issue #3531522: Notice: Debug: Drupal\Core\Render\Renderer::render with $is_root_call is deprecated in drupal:11.2.0 and is removed from drupal:12.0.0. After upgrading to Drupal 11.2')
leaflet.schema.yml and leaflet_views.style.schema.yml fixes (Issue #3473537: leaflet_popup` schema)
Issue #3530175: Ajax popups not working for anonymous users
leaflet.schema.yml and leaflet_views.style.schema.yml fixes (Issue #3473537: leaflet_popup` schema)
Fixed / Refactored render methods without $is_root_call (=== TRUE)
('Issue #3531522: Notice: Debug: Drupal\Core\Render\Renderer::render with $is_root_call is deprecated in drupal:11.2.0 and is removed from drupal:12.0.0. After upgrading to Drupal 11.2')
Remove explicit load of Leaflet libraries from the header, as they could cause js workflow break
(Issue #3530635: Map does not load for authenticated users when L.Control.ResetView.js is in the head)
LeafletMap View Style: processIconDimensions fix
Enhancement of Leaflet Widget, Formatter, and View Style settings to support single Token and single Replacement containing the complete JSON specification in Tooltip Options
leaflet.drupal.js: better support of tooltip options (for permanent and multivalue classes)
LeafletService: improving caching (based on specific image dimensions set) in setSizeIfEmptyOrInvalid
Remove explicit load of Leaflet libraries from the header, as they could cause js workflow break
🚀 Leaflet 10.3.x Now Supports GeoJSON Overlays in Leaflet Widget Maps
The latest Drupal Leaflet 10.3.x release brings a powerful new feature to the Leaflet Widget Map: support for custom GeoJSON overlays. These overlays can serve as non-editable, snappable drawing references, enhancing both the usability and interactivity of geospatial content editing in Drupal.
New Dev branch for deploying GeoJSON Overlays support to Leaflet Map Widget:
introduction of configurable GeoJSON vector overlays for Leaflet maps, with support for internal/external sources, custom styling, snapping during editing, layer control integration, and auto-fit bounds. Enhances geospatial editing and visualisation for geofield-enabled Drupal content.
Restored and fixed correct DivIcon definition with its properties
(Issue #3510968: Leaflet Map settings for DivIcon size and anchor are ignored)
Better documentation in Icon definition.
Better compatibility Drupal Leaflet Widget with Inline Entity Forms and Paragraphs Widgets: proper injection and correct handling of drupal-leaflet-widget element in case of ajax updates (i.e. in case of closed Paragraphs Widgets elements)
Implementation of specific Leaflet backend cache (for leaflet_map_info and leaflet_map_icon_size),
for relevant performance improvements in case of custom Icon Urls
Better and more performant refactoring of LeafletService:setFeatureIconSizesIfEmptyOrInvalid public method
Roll back to maplibre-gl-js version 3.6.2 )because of issues to map panning with maplibre-gl-js-5.1.0)
Upgrade to maplibre-gl-js-5.1.0, and reduction of Leaflet module weight to its half: removing the last code line
#sourceMappingURL=maplibre-gl.js.map at the end of the original maplibre-gl.js file to make the js debugger not look for the maplibre-gl.js.map file (that is 5 Mb).
Enhancements and refactoring to LeafletMap View Style
LeafletMap View Style: better placement of Overlay Grouping Form Element (after data and entity sources element)
LeafletService.php: better refactoring of fileExists public function (by AI DeepSeek)
leaflet-geoman library updated to version: 2.18.3
Issue #3503652: Use "https:" weblink pattern for including maps tiles services
More defensive code in adding Leaflet Popup to the Leaflet Feature, only also if the .bindPopup method is supported
(Issue #3499327: Unable to add map link in popup)
Issue #3498186 by itamair, phenaproxima: LeafletSettingsElementSettingsTrait::getDefaultSettings() includes a `weight` property that is not the config schema for the leaflet_formatter_default formatter
Issue #3486775 by uniquename: Little typo in leaflet.api.php
Issue #3486450 by ressa: Improve help text for Initial Zoom and Zoom Finer
Issue #3129345 by couloir007, itamair, jlstrecker: Displaying marks as map pans, with worldCopyJump param
Issue #3490608 by ressa: Make Form display use Leaflet Map: OSM Mapnik by default, same as Display does