に座っていた

was sitting at/on

→ に
phrase Common #2,841
was sitting at/on に marks the place where someone was sitting; 座っていた describes a past state of sitting.
JA: 彼は窓のそばに座っていた。
EN: He was sitting by the window.

彼は目を閉じて机に座っていた。

He was sitting at the desk with his eyes closed.

ネコがイスに座っていた。

The cat was sitting on the chair.

トムはバスの前の席に座っていた。

Tom was sitting in the seat at the front of the bus.

私は自分の船に座っていた。

I was sitting on my boat.

メアリーは岩に座っていた。

Mary was sitting on a rock.

トムとメアリーは会議室で隣同士に座っていた。

Tom and Mary were sitting next to each other in the conference room.

畳に座っていたので足が痛い。

My legs hurt from sitting on the tatami.