Problem/Motivation

Under some circumstances (JS aggregation enabled) we noticed that leaflet_more_maps.js fails because it cannot find Drupal.Leaflet.

Steps to reproduce

Hard to reproduce because it depends on how JS is aggregated or in what order it is loaded.

Proposed resolution

The leaflet-more-maps library declares a dependency on leaflet/leaflet. This is incorrect, because Drupal.Leaflet is set in leaflet.drupal.js from the leaflet/leaflet-drupal library. Changing the dependency to leaflet/leaflet-drupal is needed.

The tiny attached patch fixes this.

Comments

dennis_meuwissen created an issue. See original summary.

dennis_meuwissen’s picture

StatusFileSize
new379 bytes
robloach’s picture

Status: Active » Needs review
dennis_meuwissen’s picture

I should have been more clear; leaflet/leaflet-drupal is a Drupal library from the leaflet module, not a Composer library.

tjhellmann’s picture

Ran into this bug today and the patch fixed it. Thanks!

berramou’s picture

Thank you @dennis_meuwissen, for the report and the patch.

berramou’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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