The law of Panama is based on civil law with influences from Spanish legal tradition and Roman law. For the first several years of its existence, Panamian law depended on the legal code inherited from Colombia . The first Panamanian codes, promulgated in 1917, were patterned on those of Colombia and other Latin American states that had earlier broken away from the Spanish Empire; therefore, Panama's legal heritage incorporated elements from Spain and its colonies. Nevertheless, several features of Anglo-American law have also been accepted in Panama. Habeas corpus, a feature of Anglo-American legal procedure that is not found in many Latin American codes, has been constitutionally guaranteed in Panama. Judicial precedent, another Anglo-American practice, has also made some headway; however, judges and magistrates usually have had little leeway in matters of procedure, delays, and degrees of guilt