I'm using checkboxes and a toggle function to turn on/off kml layers
that are being read into my Gmap. When my page loads, I want the
layers to be hidden, and the ckeckboxes to be un-checked. When I
remove the "checked" attribute from my object, the boxes load as un-
checked but the kml layers still show. What am I doing wrong here?

>>>from my HTML<<<
        <input type="checkbox" id="show_POP"
                onclick="togglePOP()" />
                <img width="20" height="20" src="http://www.urlnamespace.com/
file.png"/>
                        POP <br>

>>>from my JS<<<
        function togglePOP()
        {
          if (document.getElementById('show_POP').checked)
          geoXmlA2.show();
         else
           geoXmlA2.hide();
        };

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API V2" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-api?hl=en.

Reply via email to