map-simple-refresh.html
changeset 0 5ecce0e1ef52
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/map-simple-refresh.html	Wed Apr 09 12:36:39 2014 +0200
     1.3 @@ -0,0 +1,40 @@
     1.4 +
     1.5 +
     1.6 +<!DOCTYPE html>
     1.7 +<html>
     1.8 +  <head>
     1.9 +    <title>Simple Map</title>
    1.10 +    <meta name="viewport" content="initial-scale=1.0, user-scalable=no">
    1.11 +    <meta charset="utf-8">
    1.12 +    <style>
    1.13 +      html, body, #map-canvas {
    1.14 +        margin: 0;
    1.15 +        padding: 0;
    1.16 +        height: 100%;
    1.17 +      }
    1.18 +    </style>
    1.19 +    <script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false"></script>
    1.20 +    <script>
    1.21 +// Enable the visual refresh
    1.22 +google.maps.visualRefresh = true;
    1.23 +
    1.24 +var map;
    1.25 +function initialize() {
    1.26 +  var mapOptions = {
    1.27 +    zoom: 8,
    1.28 +    center: new google.maps.LatLng(-34.397, 150.644),
    1.29 +    mapTypeId: google.maps.MapTypeId.ROADMAP
    1.30 +  };
    1.31 +  map = new google.maps.Map(document.getElementById('map-canvas'),
    1.32 +      mapOptions);
    1.33 +}
    1.34 +
    1.35 +google.maps.event.addDomListener(window, 'load', initialize);
    1.36 +
    1.37 +    </script>
    1.38 +  </head>
    1.39 +  <body>
    1.40 +    <div id="map-canvas"></div>
    1.41 +  </body>
    1.42 +</html>
    1.43 +