The soldiers were advancing toward the enemy's position.
Literal
Soldiers [topic-は] enemy [possessive-の] position [direction-へ] headed-toward were-advancing.
Combines ~へ向かって (directional movement) with ~ていた (ongoing past action), painting a scene of soldiers in mid-advance. 陣地 (じんち) means a military position or encampment.