js-shapefile-to-geojson icon indicating copy to clipboard operation
js-shapefile-to-geojson copied to clipboard

Reading Shapefile using file input crashing google chrome

Open mohayemin opened this issue 10 years ago • 1 comments

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])

mohayemin avatar Mar 27 '14 09:03 mohayemin

I have the same problem. Works fine in Firefox but in Chrome it just won't... to bad there is no reply.

michaelvaneck avatar Oct 05 '15 06:10 michaelvaneck