Just don't add it in the first place. Take a look at GControl, and the  
various implementations provided by the API, and then addControl()  
whichever ones you actually want. Perhaps GSmallZoomControl would be  
one option, or GSmallZoomControl3D if that's your bag.

http://code.google.com/apis/maps/documentation/reference.html#GControl

Are you planning on disabling the mouse-drag panning functionality of  
the map? If not, it seems kind of annoying from a usability  
perspective to remove the panning control. If you're just trying to  
save screen real estate, just use the small controls.

-G

On Sep 17, 2009, at 4:22 PM, Marco Alves wrote:

>
> Hello everbody!
>
> I'm using google maps api v2.
>
> Does anyone know how to disable (actually hide) the top left pan
> control? I still want to zoom (showing the scale) but I do not want to
> let my users to use the pan control. How does I accomplish it?
>
> I've researched a lot but no success.
>
> Thank you for any replies.
>
> Best regards,
> Marco Alves.
> >


--~--~---------~--~----~------------~-------~--~----~
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