Take a look at this post:
http://groups.google.com/group/google-maps-js-api-v3/browse_thread/thread/d141c913badec13a

The way in which they load the KML files puts all layer references into an
array.

With that array you can simply loop through each reference, hide all but the
one you want to show.

On Wed, Mar 9, 2011 at 7:28 AM, Kevin B <[email protected]> wrote:

> I need a Google Map V3 API with a way to add multiple kmz files (5)
> with buttons to turn them on or off.   Only one kmz should be shown at one
> time.
>
> Thanks, Kevin
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Maps JavaScript API v3" 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-js-api-v3?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.

Reply via email to