I'm also seeing this behaviour(no effect) with:
  var customUI = cMap.getDefaultUI();
  customUI.controls.maptypecontrol = false;
  customUI.controls.menumaptypecontrol = false;
  cMap.setUI(customUI);

But for me "customUI.controls.scalecontrol = false;" work ok.

I'm on GMap v2.250a, Win7-64, All browsers.



On Jun 16, 10:00 am, allankliu <[email protected]> wrote:
> I am trying to use Google map for other professional purposes for FMCG
> (fast moving consumer good) and medical, which is basically use the
> framework to viewing a big picture. Google map will enable the scale
> control as default for large map.
>
> I tried to disable the control by following code from Google API
> tutorial:
> ...
>       var customUI = map.getDefaultUI();
>       customUI.controls.scalecontrol = false;
>       map.setUI(customUI);
> ...
>
> But it doesn't work, it still there and confuse our users.
>
> Has anyone experienced that before? Thanks in advance.
>
> BTW, I left my page on:
>
> http://www.ennovation.org/test/dm-crop/

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