Site URL:

http://www.justecho.com/go3d

Here's the way that I have it setup. The checkboxes on the left are a
custom made menu through a standard HTML form. The boxes, when clicked
use a jQuery function that checks to see if the box is checked or not.

The jQuery function is as follows:

function neighborhood()
        {
                var kml = new GGeoXml("http://www.justecho.com/go3d/
OrlandoNeighborhoods.kml");

                if($('input[name="neighborhoods"]').attr('checked', true))
                {
                        map.addOverlay(kml);
                }

        }

If I were to add the lines:

if($('input[name="neighborhoods"]').attr('checked', true))
                {
                        map.removeOverlay(kml);
                }

The checkboxes then do not unselect. I realize that the kml variable
only refers to the pointer of the KML file. So instead of removing the
pointer with the removeOverlay() function, how do I actually remove
the overlay?

I've gotten everything else working in terms of functionality, this
has been plaguing me all afternoon.

-- 
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