Sounds like when Marley pooped in the Ocean on the movie.
Law is law, don't like it, move or buy private property. I understand there are stupid laws, but dogs are never 100%, no matter how well trained. leash laws exist for several reasons.
Hopefully the fine isn't too much, but I would assume at least $25 a dog if not more.