calvinmetcalf / leaflet.shapefile

Shapefile in Leaflet
http://calvinmetcalf.github.io/leaflet.shapefile/
MIT License
259 stars 119 forks source link

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

Open alemhar opened 5 years ago

alemhar commented 5 years ago

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.

strainel commented 5 years ago

hi ! same issue... any idea ?

calvinmetcalf commented 5 years ago

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

strainel commented 5 years ago

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

szweibel commented 5 years ago

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

derkod commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

fixed by #57