history.html
changeset 116 4718e6804c94
parent 112 9e5ba0fefe55
child 117 7ea39721aea7
equal deleted inserted replaced
115:af0ecdcd08a9 116:4718e6804c94
     7       #map_canvas {
     7       #map_canvas {
     8         width: 500px;
     8         width: 500px;
     9         height: 400px;
     9         height: 400px;
    10       }
    10       }
    11     </style>
    11     </style>
    12     <script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?sensor=false"></script>
       
    13     <script type="text/javascript">
       
    14       function initialize() {
       
    15         var Latlng = new google.maps.LatLng(32.060255, 118.796877);
       
    16         var map_canvas = document.getElementById('map_canvas');
       
    17         var map_options = {
       
    18           center: Latlng,
       
    19           zoom: 0,
       
    20           mapTypeId: google.maps.MapTypeId.HYBRID
       
    21         }
       
    22         var map = new google.maps.Map(map_canvas, map_options)
       
    23 
       
    24         var marker = new google.maps.Marker({
       
    25           position: Latlng,
       
    26           map: map,
       
    27           title: 'Nanjing'
       
    28         });
       
    29       }
       
    30       google.maps.event.addDomListener(window, 'load', initialize);
       
    31     </script>
       
    32 <style type="text/css">
    12 <style type="text/css">
    33   body { font-size: 14px;
    13   body { font-size: 14px;
    34          font-family: "trebuchet ms", helvetica, sans-serif; }
    14          font-family: "trebuchet ms", helvetica, sans-serif; }
    35 </style>
    15 </style>
    36 </head>
    16 </head>