Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#2 | leaflet_markercluster-properly-attach-library-2567391-1.patch | 1.54 KB | gifad |
Comments
Comment #2
gifad CreditAttribution: gifad commentedthe attached patch fix the issue, as long as Allow other modules to properly attach libraries is applied in leaflet module
Comment #3
gifad CreditAttribution: gifad commentedComment #4
RdeBoerThanks!
Patch applied.
Must be used with Leaflet 7.x-1.2 or later.
Rik