The GLayer is a custom tile layer over the base map and not a
control.

You can make your own controls and call the show/hide from this
control:
http://code.google.com/apis/maps/documentation/controls.html#Custom_Controls
You can easily modify this example.

On 2 Okt., 16:34, The Old Man <[EMAIL PROTECTED]> wrote:
> Thanks, I consider myself slapped as I misread the "before you post"
> topic on posting code but I did post a link!
>
> Did you mean these 
> examples?http://code.google.com/apis/maps/documentation/reference.html#GLayer
>
> The instructions say to add:
>
> map.addOverlay(new GLayer("com.panoramio.all"));
> map.addOverlay(new GLayer("org.wikipedia.en"));
>
> This adds the 2 layers, so for each layer do I add these lines below
> to add a custom control:
>
> map.addControl(new GLayer.show("com.panoramio.all"));
> map.addControl(new GLayer.hide("com.panoramio.all"));
>
> I tried that and the map wouldn't display anything at all.
>
> Thanks again.
--~--~---------~--~----~------------~-------~--~----~
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