Every municipality shall have power to exercise jurisdiction for all authorized purposes over all territory within the corporate limits and over any public ground or park belonging to the municipality, whether within or without the corporate limits, and in and over all places, except within the corporate limits of another municipality, within one mile of the corporate limits or of any public ground or park belonging to the municipality outside the corporate limits, for the purpose of promoting the health, safety, morals, and general welfare of the community, and of enforcing its ordinances and resolutions relating thereto.
SDCL 9-29-1