Closed (fixed)
Project:
Leaflet
Version:
10.2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 May 2025 at 08:00 UTC
Updated:
7 Jun 2025 at 12:29 UTC
Jump to comment: Most recent
I get this warning: Undefined array key "reset_map" in Drupal\leaflet\LeafletService->leafletRenderMap() (line 157 of /drupal/web/modules/contrib/leaflet/src/LeafletService.php)
Solution:
change:
if (is_array($map['settings']['reset_map']) && array_key_exists('control', $map['settings']['reset_map']) && $map['settings']['reset_map']['control']) {
into:
if (isset($map['settings']['reset_map']) && is_array($map['settings']['reset_map']) && array_key_exists('control', $map['settings']['reset_map']) && $map['settings']['reset_map']['control']) {
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
kul.pratap commentedWorking on it.
Comment #4
kul.pratap commentedCreated an MR for the solution.
Please review.
Comment #7
itamair commentedThanks. Merged this ...