Problem/Motivation

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']) {

Issue fork leaflet-3522379

Command icon Show commands

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

promes created an issue. See original summary.

kul.pratap’s picture

Assigned: Unassigned » kul.pratap

Working on it.

kul.pratap’s picture

Assigned: kul.pratap » Unassigned
Status: Active » Needs review

Created an MR for the solution.
Please review.

itamair made their first commit to this issue’s fork.

itamair’s picture

Status: Needs review » Fixed

Thanks. Merged this ...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.