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.
There's a typo in the code-snippet that is meant to prevent re-initialisation of an already initialised Leaflet map.
As a result the code-snippet does not function as intended with obscure side-effects.
One-line patch to fix this attached. Committed to 7.x-1.x-dev
Comments
Comment #2
RdeBoerComment #4
RdeBoerLeaflet module has the same typo, I think.
Comment #5
RdeBoerAlso fixed in Leaflet 7.x-1.x-dev