commenthol / leaflet-rastercoords

Leaflet plugin for plain image map projection to display large images using tiles generated with gdal2tiles-leaflet
https://commenthol.github.io/leaflet-rastercoords
MIT License
120 stars 23 forks source link

Missing semi colon at the end of rastercoords.js #5

Closed PinkFromTheFuture closed 6 years ago

PinkFromTheFuture commented 6 years ago

I've got a project that uses bower to install "leaflet-rastercoords": "^1.0.2".

The file being used by my project, , must be the last included file in my index.html, otherwise the following error is risen: "Uncaught TypeError: (intermediate value)(intermediate value)(...) is not a function" The fix is to simply add a semicolon ";" at the end of the file.

In short, rastercoords.js is missing a ; at the end, and if there are other scripts loaded after it, an error appears on the browser console. The workaround is to make rastercoords the last script to be loaded.

commenthol commented 6 years ago

Hi, The issue was fixed in version 1.0.3

PinkFromTheFuture commented 6 years ago

Good job! Thanks for the quickness!!