Skip to content
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

Open
alemhar opened this issue Feb 11, 2019 · 7 comments
Open

promise.then(...).catch is not a function #56

alemhar opened this issue Feb 11, 2019 · 7 comments

Comments

@alemhar
Copy link

alemhar commented Feb 11, 2019

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.

@alemhar alemhar closed this as completed Feb 11, 2019
@alemhar alemhar reopened this Feb 11, 2019
@strainel
Copy link

hi !
same issue... any idea ?

@calvinmetcalf
Copy link
Owner

how are you using this library, are you building it yourself or downloading it from somewhere ?

@strainel
Copy link

i download the files (shp.js + leaflet.shp.js + gh-pages.css + catiline.js + ) from this repo.

@szweibel
Copy link

szweibel commented Apr 5, 2019

I have this error as well, and it's also appearing on your demo site: http://calvinmetcalf.github.io/leaflet.shapefile/

@derkod
Copy link

derkod commented Apr 8, 2019

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.

@lstillwe
Copy link

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?
Thanks!

@christophemacabiau
Copy link

fixed by #57

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants