Leaflet reference error
Hello, I am getting a ReferenceError: L is not defined in line 15 (instantiate new L.map object). I have all the leaflet refs you provided in the index.html file and haven't changed anything. Any ideas on why it is not referencing Leaflet correctly? Thanks, James
Hi @jnightingale99. Please could clarify which tutorial (index.html) you are looking at... so we can investigate further and get you up-and-running.
Hi @tmnnrs , I'm looking at the National Parks tutorial. Thanks, James
I noticed that some of the dependencies were a little out-of-date (so have updated accordingly). That said, I don't think that the previous version(s) should have broken anything. The only thing I can think of is that there was a problem with the CDN where the older Leaflet JS/CSS releases were hosted... hopefully by referencing the latest version this shouldn't happen again.