os-data-hub-tutorials icon indicating copy to clipboard operation
os-data-hub-tutorials copied to clipboard

Leaflet reference error

Open jnightingale99 opened this issue 2 years ago • 4 comments

jnightingale99 avatar May 05 '23 14:05 jnightingale99

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

jnightingale99 avatar May 05 '23 17:05 jnightingale99

Hi @jnightingale99. Please could clarify which tutorial (index.html) you are looking at... so we can investigate further and get you up-and-running.

tmnnrs avatar May 09 '23 08:05 tmnnrs

Hi @tmnnrs , I'm looking at the National Parks tutorial. Thanks, James

jnightingale99 avatar May 09 '23 09:05 jnightingale99

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.

tmnnrs avatar May 09 '23 14:05 tmnnrs