How to toggle between KML/KMZ layers in Google Maps api v3
I'm developing a web page with a Google maps application. Currently, I have a functional search bar and map that displays three KML/KMZ layers. I need to be able to toggle between each of the layers, either display one of them, two of them or all three. There is a similar function in Google Earth, but I need it in Google Maps. How can I do this? Here is my code for the map and search bar: <script type="text/javascript"> var geocoder; var map; var marker; function initialize() { geocoder = new google.maps.Geocoder (); var latlng = new google.maps.LatLng (40.43, -74.00); var myOptions = { zoom: