What is the L ?

2,056 views
Skip to first unread message

Claris

unread,
Mar 29, 2013, 6:56:23 AM3/29/13
to leafl...@googlegroups.com

Hi all,

I'm a beginner with Leaflet.
I tried to use the quick start guide but I can't understand what L refers to ? (in the L.map)

I hope my question is clear 

thanks in advance

Noli Sicad

unread,
Mar 29, 2013, 6:59:57 AM3/29/13
to leafl...@googlegroups.com
Leaflet.

Tthe object Leafet (e.g. L(eaflet).map)
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Leaflet" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to leaflet-js+...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

Claris

unread,
Mar 29, 2013, 8:48:33 AM3/29/13
to leafl...@googlegroups.com

well, I copy/paste the source code here : view-source:http://leafletjs.com/examples/geojson-example.html
I put my API key
I get an empty page 

the output browser log gives : 


Failed to load resource (13:45:20:404 | error, network)
Uncaught ReferenceError: L is not defined (13:45:20:409 | error, javascript)
    at  (public_html/index.html:18:13)
Failed to load resource (13:45:20:410 | error, network)

Stefano C.

unread,
Mar 29, 2013, 12:11:18 PM3/29/13
to leafl...@googlegroups.com
mmmmh "localhost:8383"  mmmmhh "Failed to load resource" mmmmh "error, network"

attention!! I think you have a nasty javascript virus!!

 :)

Claris

unread,
Apr 2, 2013, 11:47:42 AM4/2/13
to leafl...@googlegroups.com

hi,

it's a stupid mistake,

I have to put <script src="dist/leaflet.js"></script> instead of <script src="../dist/leaflet.js"></script>

now it works
Reply all
Reply to author
Forward
0 new messages