Toggle Map Style and the Polygons Shown
In my previous Google Maps examples, I store all objects such as polygons and markers in an overlayArray. Having a “global” theme change that doesn’t just alter the mapStyle, but also polygons is as simple as looping through your Array and setting options. Here I’m…