Hi all,

I just learned using Phoenix framework for couple of days.

I tried include a Leaflet.JS <http://leafletjs.com> inside the project.
I already:
- successfully create a new page called /maps
- the page can be loaded
- tried to put leaflet.js and leaflet.css inside web/static/vendor
- create a div and script to call leaflet map in 
web/templates/maps/index.html.eex

However when I load the page the map was not loaded with console says : 
Uncaught 
ReferenceError: L is not defined

It seems that the JS was not loaded but if I checked the sources using 
Chrome inspect element the JS was already loaded.

Am I missing something here? Any help would be appreciated.

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"elixir-lang-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-talk/f475d96d-fefa-42e3-b734-a70c938ed4bd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to