![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2imctHmdZc49cxBu5oBkSf9yJ14powi3DUSb_0W3Ml6CAn1uFpurKamU88-7gcenoKPOsmAiyE34a1XgeNZL_PPDnCfihkNArgy4JgyaN2mI6BLdKc8GTF551HBwUNpNVYbygJw/s400/earth.jpg)
To add the new design to a map, developers just need to add one line of code:
// Create a map.
var map = new GMap2(myMapDiv);
// Give it the maps.google.com experience.
map.setUIToDefault();
Maps that contain this line of code will also be automatically updated if the UI of Google Maps is updated.
Here is an example of a map built using the Google Maps API with the new design of map controls - The Knossos Palace
A full reference of the functions, the GMapUIOptions class and all the defaults are available on the Google Maps API Reference.
Via: Google Geo Developers Blog: Monkey see, monkey do
________________
No comments:
Post a Comment