commenthol / leaflet-rastercoords

Leaflet plugin for plain image map projection to display large images using tiles generated with gdal2tiles-leaflet

Home Page:https://commenthol.github.io/leaflet-rastercoords

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Missing semi colon at the end of rastercoords.js

PinkFromTheFuture opened this issue · comments

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

The file being used by my project, <script src="/bower_components/leaflet-rastercoords/rastercoords.js"></script>, 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.

Hi, The issue was fixed in version 1.0.3

Good job! Thanks for the quickness!!