There are so many maps floating around Harrisburg these days that the state Capitol could be mistaken for the site of a cartographers’ convention. The gamesmanship that’s followed the state Supreme Court decision throwing out the state’s congressional districts underscores anew the need for a new, impartial redistricting process.

On Jan. 22, the court ruled that the state’s congressional districts were so gerrymandered as to be unconstitutional and ordered the GOP-controlled Legislature to draw new ones. That was a good ruling; gerrymandering is a pox on the nation’s political system. But in a move that was most assuredly overreach and very possibly partisan, the court, comprising five Democrats and two Republicans, vowed to impose its own map if Gov. Tom Wolf, a Democrat, didn’t sign off on the Legislature’s version by Feb. 15.

Even casual observers of Harrisburg political culture could have guessed what would transpire. Republican legislative leaders produced a map that Mr. Wolf promptly pronounced unacceptable. Democrats in the state House then submitted their own map for the court’s consideration. Democrats in the Senate proposed their own, too. More maps have been offered by Lt. Gov. Mike Stack, a Democrat, and by a group of Republican voters and officials.

Now, the matter is back in the court’s hands. Instead of imposing its own map, either by drawing one from scratch or picking one of those proposed by third parties, such as the group of House Democrats, it should order the Legislature to try once more to produce a version acceptable to Mr. Wolf. This step is necessary for the court’s credibility and to respect the separation of powers.

Advertise with us

Republicans already have described the Jan. 22 ruling as an attempt to do judicially what Democrats have been unable to do electorally in recent years — capture more than five of the state’s 18 U.S. House seats. While the court may throw out a map it considers unconstitutional, imposing its own would usurp the Legislature’s authority and give credence to those claiming the Jan. 22 ruling amounted to a Democratic power grab.

If given the chance to try again, the Legislature and Mr. Wolf should make the most of it. Districts should be drawn so they are competitive, with swing voters deciding races that attract moderate candidates. But even if lawmakers and Mr. Wolf agree on a map, to be used as soon as the May primary when all 18 House seats will be on the ballot, a better redistricting process is needed for the long term.

The Legislature and governor should enact a law putting redistricting in the hands of an independent citizens commission, which would use computer-generated maps (artificial intelligence is nonpartisan) to guide its work. Redistricting shouldn’t be the province of political hacks bent on putting politicians’ needs above the voters’. There’s a better way. Pennsylvania’s elected officials must find the backbone and conscience to embrace it.