Every municipality shall have power to control the location and regulate the management and construction of packinghouses, slaughterhouses, renderies, bone and soap factories, foundries, livery stables, and blacksmith shops and to prohibit any offensive or unwholesome business or establishment within, or within one mile of the corporate limits.
SDCL 9-32-7