leaflet 10.4.8

Bug fixes

Add a summary here

Contributors (2)

itamair, mudrasamey

Changelog

Issues: 0 issues resolved.

Changes since 10.4.7 (compare):

leaflet 10.4.7

Bug fixes

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 10.4.6

Bug fixes
New features
  • LeafletDefaultWidget: added Leaflet Map info and Map Height to Summary.
  • LeafletDefaultFormatter: render the Leaflet Map Label in the settings summary.
  • 'OSM Mapnik' bundled/default base map changed into 'openstreetmap' ('label' => 'OpenStreetMap')
  • leaflet/js/leaflet.drupal.js: code adjustment to set the marker.title tooltip only in case of Marker simple title,
  • not to duplicate the Leaflet bind Tooltip eventually set.

leaflet 10.4.5

New features
  • Drupal Leaflet documentation enhanced:
    • Drupal.org HTML documentation/description enhanced
    • Readme.md file enhanced
    • Agents.md file added for Agents AI integration
  • Set specific #cache contexts on users.permissions

leaflet 10.4.4

Bug fixes
New features

maplibre-gl-js library updated to latest 5.6.1 (indeed)
minor tweaks and refactoring

leaflet 10.4.3

Bug fixes
New features
  • maplibre-gl-js library updated to latest 5.6.1
  • fix: #3573817 Uncaught TypeError: can't access property "className", feature.icon is undefined

leaflet 10.4.2

New features

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

leaflet 10.4.1

Bug fixes

Leaflet module fixed dependency to:
"drupal/code": "^10.3 || ^11"

leaflet 10.4.x-dev

New features

Leaflet module set dependencies from:
"drupal/code": "^10.3 || 11",
"drupal/geofield": "^1.31 || ^10.3"

leaflet 10.4.0

New features

Leaflet module set dependencies from:
"drupal/code": "^10.3 || 11",
"drupal/geofield": "^1.31 || ^10.3"

leaflet 10.3.12

New features

composer.json set requirements to "drupal/geofield": "^1.31 || ^10.3"

leaflet 10.3.10

Bug fixes
New features

#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 10.3.9

Bug fixes

Fix in the requirement of the leaflet/leaflet.fullscreen library
Issue #3543429: Warning: Trying to access array offset on true LeafletService.php

leaflet 10.3.8

Bug fixes

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

leaflet 10.3.7

Bug fixes

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

leaflet 10.3.6

Bug fixes
New features

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)

leaflet 10.3.5

Bug fixes
  • Removed 'geojson_overlays' default settings from LeafletSettingsElementsTrait::getDefaultSettings()
  • because only and specifically included in LeafletDefaultWidget::defaultSettings().
  • Better re-writing of path settings #descriptions and Token and Replacement Disclaimers.

leaflet 10.2.50

Bug fixes
Unsupported
  • 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)

leaflet 10.3.4

Bug fixes

Issue #3530175: Ajax popups not working for anonymous users
leaflet.schema.yml and leaflet_views.style.schema.yml fixes (Issue #3473537: leaflet_popup` schema)

leaflet 10.3.3

Bug fixes

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 10.3.1

Bug fixes

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)

leaflet 10.2.49

Bug fixes
Unsupported

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.0

New features


🚀 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.

leaflet 10.2.48

Bug fixes
Unsupported

Issue #3522379 by kul.pratap: Undefined array key "reset_map"
Fix to Replacement Pattern support and Json Validation in jsonValidate static function.

leaflet 10.2.47

Bug fixes
New features
Unsupported
  • Leaflet View style Tooltips provided with '#rendered_view_fields' option (Rendered View Fields (with field label, format, classes, etc), similarly as Leaflet Popup content options
  • leaflet.drupal.js & leaflet.widget.js code improvements and better documentation
  • Fixes possible error related to Warning: Undefined array key in Drupal\field ui\Form\EntityDisplayFormBase->copyFrom Values Entity() - @see: https://www.drupal.org/project/office_hours/issues/3413697

leaflet 10.3.x-dev

New features

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.

leaflet 10.2.46

Bug fixes
Unsupported

Issue #3521371: Version 10.2.45 introduces a bug with Views tooltips

leaflet 10.2.45

Bug fixes
New features
Unsupported

Code refactoring and improvements:

leaflet 10.2.44

New features
Unsupported

Set protected the private function setSizeIfEmptyOrInvalid, to make it overridable by custom overriding LeafletService

leaflet 10.2.43

Bug fixes
Unsupported

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.

leaflet 10.2.42

Bug fixes
Unsupported

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)

leaflet 10.2.41

Bug fixes
New features
Unsupported

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)

leaflet 10.2.40

New features
Unsupported

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).

leaflet 10.2.39

Bug fixes
Unsupported

Fix Popup Issue on DIV Icon option (Issue #3377484: Uncaught Error: Invalid LatLng object: (NaN, NaN))

leaflet 10.2.38

Bug fixes
Unsupported

Rollback of leaflet-geoman library update to version: 2.18.3, because of wrong leaflet-geoman library tools icons rendering in Apple Safari

leaflet 10.2.37

Bug fixes
New features
Unsupported
  • Issue #3505326: Add Option to Leaflet Widget for Placing Markers on the Map via Geocoding
  • LeafletMap Widget: Fix proper Start Center definition.

leaflet 10.2.36

Bug fixes
Unsupported

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

leaflet 10.2.35

Bug fixes
New features
Unsupported

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)

leaflet 10.2.34

Bug fixes
Unsupported

Issue #3498789: Update method signatures to not implicitly mark paramaters as nullable.
Fix empty Leaflet Popup (still displaying empty)

leaflet 10.2.33

Bug fixes
Unsupported

Issue #3498186 by itamair, phenaproxima: LeafletSettingsElementSettingsTrait::getDefaultSettings() includes a `weight` property that is not the config schema for the leaflet_formatter_default formatter

leaflet 10.2.32

Bug fixes
New features
Unsupported

Define the title (as mouse hover tooltip) only in case the Leaflet Tooltip is not defined.

leaflet 10.2.31

Bug fixes
Unsupported

Leaflet Widget (leaflet.widget.js): Fix Initial Zoom in case of single Point (Map Bounds collapsed into a Point)

leaflet 10.2.30

Bug fixes
Unsupported

Update renderPlain() to RendererInterface::renderInIsolation() as reported by PHPStan

leaflet 10.2.29

Bug fixes
Unsupported

Issue #3491625 by mrcdrx: Undefined array key 'weight' breaks Views editing

leaflet 10.2.28

New features
Unsupported

Issue #3491298 by jan kellermann: Add Attributes to template (enabling support to Klaro! Consent Management)

leaflet 10.2.27

Bug fixes
New features
Unsupported

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

leaflet 10.2.26

Bug fixes
New features
Unsupported
  • Issue #3481466 by uniquename: Make setExistingZoomSettings() and tokenResolvedContent() protected in LeafletDefaultFormatter.php
  • Minor Issue #3484385 in leaflet.install: Better fall back code to define Leaflet @version in case it is not defined
  • Issue #3485071 by uniquename, itamair: Extend the GeJson support to all the options available in the Leaflet Geojson object

leaflet 10.2.25

Bug fixes
New features
Unsupported
  • Issue #3468941 by woutgg: Initialisation error when zoom controls are disabled
  • Issue #3469226 by mandclu, itamair: Remove "weight" from default settings in LeafletSettingsElementsTrait::getDefaultSettings
  • Issue #3467556 by itamair, codebymikey: Use the EntityDisplayRepository to get the view mode options

leaflet 10.2.24

Bug fixes
Unsupported

Issue #3467557 by itamair, steven jones: Do not use VERSION string in libraries definition

Pages

Subscribe with RSS Subscribe to Releases for Leaflet