McLane and his family moved back to the United States in 1833 when his father was appointed Secretary of the Treasury.
In 1838, he was transferred to the Corps of Topographical Engineers under General Zachary Taylor.