How to hide or display a Google Maps Layer?
I have prepared a simplified test case and a screenshot. I think I'm missing a tiny bit, just few lines of code. I have 2 overlays (the weather and clouds ) in my JavaScript Google Map and would like to hide or show them when a corresponding check box is clicked: Here is the test case, just paste it into an .html file and it will run: <!DOCTYPE HTML> <html> <head> <style type="text/css"> h1,p { text-align: center; } #map { width: 700px; height: 400px; margin-left: auto; margin-right: auto; background-color: #CCCCFF; } </style> <script type="text/javascript" src="https://maps.google.com/maps