Advertisement
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?v=3.exp&sensor=false"></script>
- <script>
- function initialize() {
- var map_canvas = document.getElementById('map_canvas');
- var mapOptions = {
- zoom: 11,
- center: myLatlng,
- mapTypeId: google.maps.MapTypeId.SATTELITE
- }
- var map = new google.maps.Map(document.getElementById('map-canvas'), mapOptions);
- }
- google.maps.event.addListener(window, 'load', initialize);
- </script>
- </head>
- <body>
- <div id="map_canvas"></div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement