The Florida Supreme Court ruled Thursday that the state’s congressional maps don’t meet the requirements of a voter-approved constitutional amendment that prohibits political lines from being drawn to favor incumbents or a political party. The court ordered the Legislature to try drawing the maps again.

The ruling means there could be an upheaval as incumbents seek re-election and candidates from both parties seek to fill open seats. Florida has 27 congressional districts and the ruling could affect 22 of them. The court ordered eight districts be redrawn, but in doing so, 14 districts that border might also have to be changed.