Thanks Mike - that's the route I've taken.   I've scratched the
listener and all seems well so far!

On Mar 5, 10:11 am, Mike Williams <[email protected]> wrote:
> Wasn't it caroig who wrote:
>
> >How can I tell is the overlay is hidden or has not yet been added to
> >the map?  isHidden() doesn't take me anywhere as it returns false if
> >the overlay is not added.
>
> The API doesn't make that info accessible, so you'll just have to
> remember the information yourself.
>
> One way is to add a custom Property to your KML overlays
>
>   var kml = new GGeoXml(...);
>   kml.IsAdded = false;
>
> ...
>
>   function show(kml) {
>     if (kml.IsAdded) {
>       kml.show();
>     } else {
>       map.addOverlay(kml);
>       kml.IsAdded = true;
>     }
>   }
>
> --http://econym.org.uk/gmap
> The Blackpool Community Church Javascript Team
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to