Open alemhar opened 5 years ago
hi ! same issue... any idea ?
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? Thanks!
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.