js-shapefile-to-geojson
js-shapefile-to-geojson copied to clipboard
Reading Shapefile using file input crashing google chrome
I have this code:
var opts = { shp: files[0], jsRoot: "/Scripts/ShapeReader/" };
var shapefile = new Shapefile(opts, function (data) {
console.log(data);
});
Here files
is the value of a file input.
Now, this code works fine in Firefox (27.0.1) but Google Chrome (33.0.1750.154 m) crashes when this code executes.
To be specific, the error occurs when executing line 23 of shapefile.js:
w.postMessage(["Load", o])
I have the same problem. Works fine in Firefox but in Chrome it just won't... to bad there is no reply.