OK, I think I see that your dog was not on a leash. But neither was the neighbor's dog. And yours was in your yard. And the other dog was also in your yard.
When I had problems with my neighbor in Louisiana, I was told that my dog could be on my property without a leash. But when he stepped across the property line either into the street or onto someone else's property, then I was in violation of the law.