Note: API v2.145 is not yet live. It's possible that the code may be
changed before it goes live. It's not a good idea to use pre-release
versions for live sites.

New Methods

  map.getDefaultUI()
  map.setDefaultUI(ui)
  map.setUI(ui)

Browser Support

  Mozilla Minefield and Mozilla Shiretoko are now treated as if they
were Firefox rather than Mozilla

New GMapOption

  {itc:id} The parameter is the id of a HTMLElement


A UI is an Object that has properties "controls", "keyboard",
"maptypes", "zoom"

UI.controls is an object has properties like "largemapcontrol3d",
"smallzoomcontrol3D", "maptypecontrol", "menumaptypecontrol",
"scalecontrol", which are boolean

UI.keyboard is a booleean

UI.maptypes is an object has properties like "hybrid", "normal",
"physical", "satellite", which are boolean

UI.zoom is an object has properties like "doubleclick", "scrollwheel",
which are boolean

Note that the default UI doesn't reflect the current state of the map.

You can use UI's like this:

      // Get the default UI
      var ui = map.getDefaultUI();

      // Make changes as required
      ui.controls.scalecontrol = false;
      ui.controls.overviewmapcontrol = true;

      // Implement it
      map.setUI(ui);

Which is equivalent to calling all the separate calls such as
addControl(new GLargeMapControl3D()), addMapType(G_PHYSICAL_MAP),
map.enableScrollwheelZoom(), etc.
Except that you always get the smallzoomcontrol3D, even if you set it
false and even if the largemapcontrol3d is present.
The non-3D zoom controls are not available.


I don't know what {itc:id} does.

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