Oh, sorry, I missed the fact, that it's not actually custom Overlays, but
custom Map Types.

So
instead of
pecMajorTilesType.show();
you'll call
anatomy.overlayMapTypes.removeAt(2);

etc.
-- 
Radek.

2010/7/21 Radek Šimko <[email protected]>

> What about this?
>
> http://code.google.com/intl/cs-CZ/apis/maps/documentation/javascript/overlays.html#HideShow
> --
> Radek
>
>
> On Wed, Jul 21, 2010 at 12:31, Kesuke <[email protected]> wrote:
>
>> I'm moving a project from V2 to V3 and am having some trouble showing
>> and hiding custom overlays (added using overlayMapTypes).
>>
>> In V2 it was a pretty straightforward job of using the show() and
>> hide() methods that were part of the GLayer class. But in V3 i'm not
>> sure how to go about the same thing as this has changed quite a bit.
>> I've checked the V3 reference and search but am still a little
>> confussed.
>>
>> Examples are online at:
>>
>> V2: http://anatomy.study-medicine.co.uk/testn6.html
>> V3: http://anatomy.study-medicine.co.uk/testg3t2.html
>>
>> On the V2 example, if you go to the 'trunk' tab under the navigation
>> button you will see two selectable layers. These can be shown and
>> hidden. I would like to achieve the same effect using V3.
>>
>> --
>> 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]<google-maps-js-api-v3%[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