I am implementing line-of-sight into a strategy game I am developing, and I would like to shade the map darker outside of the LoS of the player and their structures (fog of war). The trick is, this is a location-based strategy game for android using the Google Maps API.
Now, I know how I would draw just one circle for the LoS: by drawing a dark circle centered on the antipode of the play or structure in question. The only problem is I could only do this for one structure at a time, as the shade would essentially overlap and override any other LoS circles. This is a position that I can ultimately settle with if there is no other option.
What I would rather do is essentially shade the map except for the radii around the player and any of their structures. See the images below for an example of what I am talking about. The red dots are the structures, the white circles are the Line-of-Sight, and the black area is of course the shaded remainder of the map:
