Skip to content

Commit

Permalink
Merge pull request #12 from itbeyond/master
Browse files Browse the repository at this point in the history
Two fixes/updates
  • Loading branch information
joker-x committed Jul 22, 2015
2 parents b448a1f + bc67e22 commit a11c1ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions leaflet.geocsv-src.js
Expand Up @@ -58,13 +58,13 @@ L.GeoCSV = L.GeoJSON.extend({
//generamos _propertiesNames
for (var i=0; i<titulos.length; i++) {
var prop = titulos[i].toLowerCase().replace(/[^\w ]+/g,'').replace(/ +/g,'_');
if (prop == '' || prop == '_' || this._propertiesNames.indexOf(prop) >= 0) prop = 'prop-'+i;
if (prop == '' || prop == '_') prop = 'prop-'+i;
this._propertiesNames[i] = prop;
}
//convertimos los datos a geoJSON
data = this._csv2json(data);
}
L.GeoJSON.prototype.addData.call (this, data);
return L.GeoJSON.prototype.addData.call (this, data);
},

getPropertyName: function (title) {
Expand Down

0 comments on commit a11c1ed

Please sign in to comment.