<html> <head> <script src="http://maps.google.com/maps?file=api&v=2&key=Your_Google_Maps_API_Key" type="text/javascript"></script> <script language="JavaScript" src="http://www.geoplugin.net/javascript.gp" type="text/javascript"></script> <script type="text/javascript"> function load() { if (GBrowserIsCompatible()) { var map = new GMap2(document.getElementById("map")); map.addControl(new GLargeMapControl()); map.addControl(new GMapTypeControl()); map.setCenter(new GLatLng(geoplugin_latitude(), geoplugin_longitude()), 12); } } </script> </head> <body> <div id="map" style="width: 500px; height: 300px"></div> <script>load();</script> </body> </html>
Flipkart
Thursday, March 11, 2010
Google API: Embedding a Google Map
Labels:
Google API
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment