-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
promise.then(...).catch is not a function #56
Comments
hi ! |
how are you using this library, are you building it yourself or downloading it from somewhere ? |
i download the files (shp.js + leaflet.shp.js + gh-pages.css + catiline.js + ) from this repo. |
I have this error as well, and it's also appearing on your demo site: http://calvinmetcalf.github.io/leaflet.shapefile/ |
Same here. Installed this for the first time so I thought I was doing something wrong. But see the same error in console (FF, Chrome) when visiting http://calvinmetcalf.github.io/leaflet.shapefile/ which I think should work fine. |
I just tried this, and I also have the same problem. Anybody have any idea how to fix it? Is there any other Leaflet shapefile plugin? |
fixed by #57 |
Hi Calvin,
First, thank you for this plugin.
This is the issue I encounter. When loading a shape zip file. I get a "promise.then(...).catch is not a function" error:
at e.addFileData (leaflet.shpfile.js:57)
at e.initialize (leaflet.shpfile.js:23)
at new e (leaflet.js:5)
but on "http://leaflet.calvinmetcalf.com/" it successfully loads the file. The file is 51MB in size which I download here (https://tnris-datadownload.s3.amazonaws.com/d/otls/state/tx/otls_tx.zip).
Looking forward for your response.
The text was updated successfully, but these errors were encountered: