-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbmap.html
More file actions
24 lines (21 loc) · 693 Bytes
/
bmap.html
File metadata and controls
24 lines (21 loc) · 693 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=BVIEL1GtqyE9v1l9ii2C6pgO"></script>
<title>Hello, World</title>
<style type="text/css">
body, html,#allmap {width: 100%;height: 100%;overflow: hidden;margin:0;}
</style>
</head>
<body>
<div id="allmap"></div>
</body>
</html>
<script type="text/javascript">
var map = new BMap.Map("allmap");
map.centerAndZoom(new BMap.Point(121.495, 31.229), 14);
map.enableScrollWheelZoom();
map.addControl(new BMap.NavigationControl());
</script>