Google Map API

Can you implement Google map on your own web application ?if you have these types of question then your Question's answer is "Yes".If you want implement Google map in your web application then you can do it easily .you need to write few lines of code than you can see google map on your web application.For doing these type of stuff you need to learn Google API,It provide a API simply plug and play you will get many more inside be leave me it is very interesting and pretty much Cool. Click here to Download Demo .



Code:
  1. <!--Author :Mohammad Usman
  2.    Date :19/06/2011   -->
  3. <meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
  4. <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
  5. <title>Google Maps JavaScript API v3 Example: KmlLayer GeoRSS</title>
  6. <link href="http://code.google.com/apis/maps/documentation/javascript/examples/default.css" rel="stylesheet" type="text/css" />
  7. <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
  8. <script type="text/javascript">
  9. function initialize() {
  10.   //Put Latitude and Longitude as you want.
  11.   var myLatlng = new google.maps.LatLng(28.613459424004414,79.16748046875);
  12.   var myOptions = {
  13.     zoom: 4,
  14.     center: myLatlng,
  15.     mapTypeId: google.maps.MapTypeId.ROADMAP
  16.   }
  17.   var map = new google.maps.Map(document.getElementById("map_canvas"),myOptions);
  18. }
  19. </head>
  20. <body onload="initialize()">
  21.   <div id="map_canvas"></div>
  22. </body>
  23. </html>

1 comment:

Comment On Facebook