(for someones future reference)
so i "fixed" it (same link as above) with the code below, but, now i
see that .hide means that when you hide it (i.e. a kml of polygons)
you can still click on the area covered b the kml and get back a info
window??! i guess thats useful for something , but not for what i am
building so i will go back to just using .addovelay and .removeoverlay
unless some knows some special secret to hide it and make it
inaccessible.
//code i wanted to use
function togXML(id, checked) {
var daobj = layers[id].theobject;
var datype = layers[id].type;
if (layers[id].added) {
if (checked) {
daobj.show();
} else {
daobj.hide();
}
} else {
if (datype == "kml") {
map.addOverlay(daobj);
layers[id].added = true;
} else {
//hhh
}
}
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" 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
-~----------~----~----~----~------~----~------~--~---