-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmap_detail.html
51 lines (49 loc) · 1.52 KB
/
map_detail.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<title>That's App H5</title>
<link rel="stylesheet" type="text/css" href="dist/css/app-bundle.css">
</head>
<body>
<div class="app-container map_detail">
<div class="app-content">
<div class="words-content">
<p>
师傅,请带我去,愚园路32号,近常德路 32 Yuyuan RD. Nearby Changede RD.
</p>
</div>
<div class="map-content">
<div id="map-container">
</div>
</div>
</div>
</div>
<script type="text/javascript" src="dist/js/zepto.min.js"></script>
<script type="text/javascript" src="dist/js/app-all.js"></script>
<script type="text/javascript" src="http://webapi.amap.com/maps?v=1.3&key=14b1ac87ce81e76c481b9ca09bfb8ae1&&plugin=AMap.Scale,AMap.OverView,AMap.ToolBar">
</script>
<script type="text/javascript">
Zepto(function($){
var map = new AMap.Map('map-container', {
resizeEnable: true,
center: [121.498586, 31.239637],
zoom: 13
});
var toolBar = new AMap.ToolBar({
visible: true
})
map.setLang("zh");
map.addControl(toolBar);
// 通过经纬度获取位置点
var marker = new AMap.Marker();
marker.setMap(map);
var words_content = $(".words-content").height();
var outerHeight = $(window).height();
$(".map-content").css("height",outerHeight - words_content);
$("#map-container").css("height","inherit");
});
</script>
</body>
</html>