I have generated a basic webpage with Visual Studio 2012 that displays a Google Map. My goal is to add multiple KML layers from my Server onto the Google Map, BUT, i want to be able to have a sort of switch that you can turn each file off and on, So my fist question is how can i add multiple layers from my server (I already know how to load 1) and how do i create this 'Switch'.
I am using Visual studio 2012, Google Maps JS Api V3, and this is the current script: