I'm still working on this, but here's a first blush quick-and-dirty map of whether or not you can legally take a picture of your ballot or take a photograph in a voting precinct. I've got some more work to do checking on updates to laws, etc. Any corrections welcome. Click on a dot in a state to get the law there.
Again, updates or corrections welcome.
Initial data source is here.