firoze

google map

Dec 13th, 2014
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <style>
  5. #map-canvas {
  6. width: 500px;
  7. height: 400px;
  8. }
  9. </style>
  10. <script src="https://maps.googleapis.com/maps/api/js"></script>
  11. <script>
  12. function initialize() {
  13. var mapCanvas = document.getElementById('map-canvas');
  14. var mapOptions = {
  15. center: new google.maps.LatLng(21.617497, 87.182694),
  16. zoom: 8,
  17. mapTypeId: google.maps.MapTypeId.ROADMAP
  18. }
  19. var map = new google.maps.Map(mapCanvas, mapOptions)
  20. }
  21. google.maps.event.addDomListener(window, 'load', initialize);
  22. </script>
  23. </head>
  24. <body>
  25. <div id="map-canvas"></div>
  26. </body>
  27. </html>
Add Comment
Please, Sign In to add comment