-
Notifications
You must be signed in to change notification settings - Fork 0
/
ditu.html
37 lines (31 loc) · 950 Bytes
/
ditu.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<!DOCTYPE html>
<html>
<head>
<title>Google Maps JavaScript API v3 Example: Map Simple</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<meta charset="utf-8">
<style> html, body, #map_canvas
{
margin: 0; padding: 0; height: 100%;
}
</style>
<script src="http://ditu.google.cn/maps/api/js?language=zh-CN&sensor=false"></script>
<script>
var map;
function initialize()
{
var mapOptions =
{
zoom: 3,
center: new google.maps.LatLng(28.543211,110.123456),
mapTypeId: google.maps.MapTypeId.ROADMAP
};
map = new google.maps.Map(document.getElementById('map_canvas'), mapOptions);
}
google.maps.event.addDomListener(window, 'load', initialize);
</script>
</head>
<body>
<div id="map_canvas"></div>
</body>
</html>