GeoTIFF / georaster-layer-for-leaflet

Display GeoTIFFs and soon other types of raster on your Leaflet Map
https://geotiff.github.io/georaster-layer-for-leaflet-example/
Apache License 2.0
306 stars 58 forks source link

ReferenceError: Can't find variable: proj4 #41

Closed YANI-ALT closed 4 years ago

YANI-ALT commented 4 years ago

Hello! I am a beginner using this for my project. I got the following error in console not sure what it means...please tell me how I should go about debugging. I'm using macOS Mojave and safari.

image

The error directs to this portion of the code in : georaster-layer-for-leaflet.browserify.min.js

image

DanielJDufour commented 4 years ago

Hello. Thank you for posting this issue. It's a very common issue and I should update the error to be more clear. I added another entry to the FAQ to answer this: https://github.com/GeoTIFF/georaster-layer-for-leaflet/blob/master/FAQs.md#i-receive-a-referenceerror-cant-find-variable-proj4

Let me know if this helps!

DanielJDufour commented 4 years ago

Hi, @YANI-ALT . Did the answer help? Thanks!

YANI-ALT commented 4 years ago

yes this should do ! Thanks

DanielJDufour commented 4 years ago

Awesome!