Only in newly built out places that didn't have preexisting and sufficiently expansive local governments that could be utilized for such tasks. Those municipalities simply passed local ordinances, many/most of which are still on the books and continue to be used for arbitrary enforcement exactly as envisioned the better part of a century ago.