OrdnanceSurvey / os-data-hub-tutorials

Step-by-step guides to get your project up and running. Here you'll find out how we develop solutions with our APIs. You can follow our step-by-step guides to start building your own innovative projects. These tutorials are related to the Mapping and Data APIs available from our Data Hub (https://osdatahub.os.uk/).
Other
23 stars 7 forks source link

Leaflet reference error #19

Open jnightingale99 opened 1 year ago

jnightingale99 commented 1 year ago

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

tmnnrs commented 1 year ago

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 commented 1 year ago

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

tmnnrs commented 1 year ago

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.