![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTyb0KmZbVelf4aiP1OEzRzSGMdnn4jWMowyPDr9hvIOATNRISjG0kvG7p3JwwFBnN6INg8QBed_J4s-F8sgGws0gcyyHG_QG-5Oc3jn_2ocelwkem7gcuPM5HT7GShyNu2Y7mPGwTb2x2/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
________________
0 comments:
Post a Comment