The new design of map controls that was introduced in Google Maps last month is now available to map developers.
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