Tuesday, June 15, 2010

How to remove GScaleControl ?

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 google-maps-api@googlegroups.com.
To unsubscribe from this group, send email to google-maps-api+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate