Ver originalvar beaches = new Array(); for(i=0;i<contador;i++){ beaches[i] = new Array(); beaches[i][0]= descripcion[i]; beaches[i][1] = latitudes[i]; beaches[i][2] = longitudes[i]; beaches[i][3] = 4; }