Warning: Trying to access array offset on true LeafletService.php

Created on 27 August 2025, about 2 months ago

Problem/Motivation

With latest updates, I have
Warning: Trying to access array offset on true in Drupal\leaflet\LeafletService->leafletRenderMap() (line 173 of modules/contrib/leaflet/src/LeafletService.php

Steps to reproduce

consume \Drupal::service('leaflet.service')->leafletRenderMap($map, $features, $data['settings']['height'])

Proposed resolution

add isset() where missing

Data model changes

🐛 Bug report
Status

Needs work

Version

10.3

Component

Code

Created by

🇮🇹Italy afagioli Rome

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024