Advertisement
Guest User

Untitled

a guest
Jul 13th, 2014
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.69 KB | None | 0 0
  1. <!doctype html>
  2. <html class="">
  3. <head>
  4. <meta name="apple-mobile-web-app-capable" content="yes" />
  5. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  6. <meta name="viewport" content="width=device-width, initial-scale=1">
  7. <meta charset="UTF-8">
  8. <title></title>
  9. <link href="css/style.css" rel="stylesheet">
  10. <script src="js/jquery-1.10.2.min.js"></script>
  11.  
  12. <script src="js/jquery.mobile-1.3.2.min.js"></script>
  13.  
  14. <link href="css/jquery.mobile.structure-1.3.2.min.css" rel="stylesheet">
  15.  
  16. <style>
  17. html, body, #map-canvas {
  18. margin: 0;
  19. padding: 0;
  20. height: 100%;
  21. }
  22.  
  23. </style>
  24.  
  25. <script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false"></script>
  26.  
  27. <script>
  28. $(document).on("pageinit", "#map", function() {
  29. initialize();
  30. });
  31.  
  32. var map;
  33. function initialize() {
  34. var mapOptions = {
  35. zoom: 17,
  36. center: new google.maps.LatLng(-27.617745,153.086779),
  37. mapTypeControl: false,
  38. zoomControl: false,
  39. panControl: false,
  40. streetViewControl: false,
  41. mapTypeId: google.maps.MapTypeId.SATELLITE
  42. };
  43. map = new google.maps.Map(document.getElementById('map-canvas'),
  44. mapOptions);
  45. }
  46. </script>
  47. </head>
  48. <body>
  49.  
  50.  
  51. <div data-role="page" id="map">
  52. <div id="header" data-role="header">
  53. <a href="#" data-rel="back" >< Back</a>
  54. </div>
  55. <div data-role="content">
  56. <div id="map-content">
  57. <div id="map-canvas"></div>
  58. </div>
  59. </div>
  60. </div>
  61.  
  62.  
  63.  
  64. </body>
  65. </html>
  66.  
  67. $(document).on("pagecreate", "#map", function() {
  68. initialize();
  69. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement