arthur-e / Wicket

A modest library for moving between Well-Known Text (WKT) and various framework geometries
https://arthur-e.github.io/Wicket/
Other
586 stars 226 forks source link

Uncaught ReferenceError: L is not defined #119

Open paulcanning opened 6 years ago

paulcanning commented 6 years ago

I'm in an odd situation. I have this library working with Leaflet Widget (https://github.com/bforchhammer/leaflet_widget) locally, and it works perfectly.

But when deployed to a remote development server, I get this error.

The library is in the correct location and is being called (as evident by it working locally) so I'm at a loss for what to do.

The code on the remote server is the same as I have locally, as it comes from a repo.

arthur-e commented 6 years ago

L, here, refers to the Leaflet library, I believe. Perhaps the path to the Leaflet library is not resolved on the remote server?

paulcanning commented 6 years ago

I'll triple check, but Leaflet was working fine previously (it's being used for user facing maps to show multiple markers).

I'm not sure why it wouldnt be able to find the leaflet library on the remote server though?

arthur-e commented 6 years ago

You can use the developer's console to figure out on what path your remote deployment thinks Leaflet should be found. (For example, under the "Newtork" tab in Google Chrome's developer window.)

paulcanning commented 6 years ago

I will have to check tomorrow, but to reiterate, everything works locally.

I'll do some digging.