javascript - csv2geojson.js causing unsupported property error in IE8 -


demo:

When I access this map from I8, it is a "object" This property or method does not support "error on this line of csv2geojson.js,

  var parsed = (typeof x == 'string')? DSV (options.delimiter). Purse (x): x;   

I'm goggling a bit, but can not understand that 8 is missing, because of this reason any reason can throw this error?

DSV library that csv2geojson.js uses some "build-in" functions supported in IE8 Are not, i.e. the map function. Uses other parts of code forEach . I pulled the following snippet from the DSV code:

  function DSV (delimiter) {var dsv = {}, reFormat = new RegExp ("[\" "+ delimiter +" \ n] " ), Delimitercode = Delimiter.CoCodayet (0); DSV.PRSE = function (text, f) {var o; Returns dsv.prsro (text, function (line, i) {if (o) return o (line, i- 1); var a = new function ("d", "return {" + row.map (function (name, i) {JSON.stringify {name} + return: "[d +" + + +] ";} ();}}; a);}};} <... (<,) / code>  

.map and .forEach Array work only go See the long story, if you want it to work in IE, your code will only work in IE9 or higher. The rewrite of the DSV library is to be compatible.

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -