Originally posted by thunderlizard
View Post
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Strict//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>GMaps Demo</title> <style type="text/css"> #map { width: 800px; height: 600px; margin: auto; } </style> </head> <body> <div id="map"></div> <script type="text/javascript" src="http://maps.google.com/maps?file=api&v=2&key=YourAPIKey"></script> <script type="text/javascript"> window.onload = function() { if (GBrowserIsCompatible()) { var map = new GMap2(document.getElementById("map")); map.setCenter(new GLatLng(51.509744, -0.126299), 17); } }; </script> </body> </html>
Comment