The local municipality has the authority to prohibit a person from erecting a building or earthwork or causing such building or earthwork to be erected from commencing or proceeding with the erection.