function load() { var map = new google.maps.Map(document.getElementById("map"), { zoom: 18, center: new google.maps.LatLng(28.617222,77.208041), //latitude and longitudes can be obtained from the link tab on google maps. mapTypeId: google.maps.MapTypeId.SATELLITE //other parameters can be ROADMAP,HYBRID,TERRAIN }); }
<html> <head> <title> Book Example 1 using Google Maps API 3 </title> <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"> </script> <script type="text/javascript"> </script> </head> <body onload = "load()"> <div id = "map" style = "width: 500px; height: 300px"> </div> </body> </html>