Completed in 1848 as Brooklyn City Hall , the original wood cupola , which burned and crashed through the roof in an 1895 fire , was replaced in 1898 , the same year that Brooklyn became part of New York City and the building became Borough Hall .