If the map is cached (via views or other cache facility), the map is not rebuilt, and the various drupal_add_js or drupal_add_library are not executed, so the cluster does not work;
Libraries should be loaded via a #attached fragment of the build array.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

gifad created an issue. See original summary.

gifad’s picture

Status: Active » Needs review
FileSize
1.54 KB

the attached patch fix the issue, as long as Allow other modules to properly attach libraries is applied in leaflet module

gifad’s picture

RdeBoer’s picture

Assigned: Unassigned » RdeBoer
Status: Needs review » Fixed

Thanks!
Patch applied.
Must be used with Leaflet 7.x-1.2 or later.
Rik

  • RdeBoer committed 8fce180 on 7.x-1.x authored by gifad
    Issue #2567391 by gifad: Library not loaded if map is cached
    

  • RdeBoer committed 2a4dd8e on 7.x-1.x authored by gifad
    Issue #2567391 by gifad: Library not loaded if map is cached
    

Status: Fixed » Closed (fixed)

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