The municipality may acquire land for this purpose by purchase or by expropriation in the manner prescribed by law.