Leaflet library not avaliable even though it’s in sites/all/libraries
I’ve seen people talking about hook_library() etc., but I’m not creating a custom module, I’m trying to use Leaflet. In the browser I get the error message:
L is not defined
From leaflet.drupal.js in my sites/all/modules folder. I’ve got the Leaflet and Libraries modules installed and enabled, and the Leaflet files are extracted under sites/all/libraries/leaflet.
Anyone have any idea what I’m doing wrong?
This article was republished from its original source.
Pixeldust is a 20-year-old web development agency specializing in Drupal and WordPress and working with clients all over the country. With our best in class capabilities, we work with small businesses and fortune 500 companies alike. Give us a call at 1(800)730-2416 and let’s talk about your project.