Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Leaflet reference error #19

Open
jnightingale99 opened this issue May 5, 2023 · 4 comments
Open

Leaflet reference error #19

jnightingale99 opened this issue May 5, 2023 · 4 comments

Comments

@jnightingale99
Copy link

jnightingale99 commented May 5, 2023

No description provided.

@jnightingale99
Copy link
Author

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 jnightingale99 changed the title package management Leaflet reference error May 5, 2023
@tmnnrs
Copy link
Collaborator

tmnnrs commented May 9, 2023

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

@jnightingale99
Copy link
Author

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

@tmnnrs
Copy link
Collaborator

tmnnrs commented May 9, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants