When using Cookies 2 + Drupal 11 + leaflet module 10.3.3 (or 10.2.x), there is an error "L.DomUtil is undefined". The views leafet block does not load.

When I disable the cookies module, everything works.

I have not been able to find why this is happening. I have tried to disable both the local and CND cookiejsr libraries and that fixes the issue too.

Comments

yonailo created an issue. See original summary.

yonailo’s picture

Title: Cookies 2.x + Drupal 11 + leaflet module : L.DomUtil is undefined » Cookies 2.x + Drupal 11 + leaflet module : Uncaught TypeError: L.DomUtil is undefined
yonailo’s picture

Issue summary: View changes
yonailo’s picture

I have found this string "L(e,t,n)" inside "cookiesjsr.min.js"

It seems that cookiesjsr defines an "L" function.

Does anybody know how we can overcome this situation ? It seems that the "L" function of cookiesjsr javascript is overwriting the "L" function of leaflet !

jfeltkamp’s picture

I have no (good) idea how this could be fixed (with a context or smth).
All sources are present here.

qazema’s picture

We have the same issue. The leaflet view only works if I am logged in as an admin.