Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>Sample Map Google API</title>
- <style>
- #map_canvas {
- width: 500px;
- height: 400px;
- }
- </style>
- <script src="https://maps.googleapis.com/maps/api/js"></script>
- <script>
- function initialize() {
- var map_canvas = document.getElementById('map_canvas');
- var mapOptions = {
- center: new google.maps.LatLng(44.5403, -78.5463),
- zoom: 8,
- mapTypeId: google.maps.MapTypeId.ROADMAP
- }
- var map = new google.maps.Map(map_canvas);
- }
- google.maps.event.addDomListener(window, 'load', initialize);
- </script>
- </head>
- <body>
- <div id="map_canvas"></div>
- </body>
- </html>
Add Comment
Please, Sign In to add comment