-
Notifications
You must be signed in to change notification settings - Fork 4
/
timeline.html
85 lines (80 loc) · 3.15 KB
/
timeline.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<html lang="en">
<head>
<meta charset="utf-8">
<title> 上海奉贤 11-01 地块变迁 </title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<link rel="stylesheet" href="./css/style.css">
<script type="text/javascript" src="./js/timeline.js"></script>
</head>
<body>
<div id="page-content"></div>
<script type="text/javascript" src="https://www.altizure.cn/sdk"></script>
<script>
function onPageLoaded () {
let projects = [
// {pid: '589db9acb504a864ad62f538', text: '拆迁 2017-02-10'},
{pid: '589a79f0b76d7a3780a5619f', text: '2017-02-08'},
{pid: '58b9825d03f7216ab68c8f40', text: '2017-03-03'},
{pid: '58d38790f387231e6c934618', text: '2017-03-23'},
{pid: '58f0acf13353456af3bc07f9', text: '2017-04-14'}, // 4
{pid: '5907f9725a6dbd3af41a13bb', text: '2017-05-02'}, // 6
{pid: '59226d12b8cfc91d91c6e3c4', text: '2017-05-22'},
{pid: '593161a1772c3e6384a21e0a', text: '2017-06-02'},
{pid: '5940eccdc2d9527ab86db784', text: '2017-06-14'},
{pid: '5950d6b941b158666ac8ef0d', text: '2017-06-26'},
{pid: '595dd8f80c2e073b37a3e901', text: '2017-07-06'},
{pid: '59b72e6ad5e441395a688086', text: '2017-07-12'}, // 12
{pid: '5971b024f444896164baa5a1', text: '2017-07-21'}, // 13
{pid: '597abc586c6ad2616b38c79e', text: '2017-07-28'},
{pid: '598d4bb72d6ac94215a0d653', text: '2017-08-11'},
{pid: '59b5fd94d5e441395a608959', text: '2017-08-22'},
{pid: '59b64aa3d5e441395a6350ff', text: '2017-08-30'},
{pid: '59b5e063d5e441395a5f932b', text: '2017-09-08'},
{pid: '59c49a8bf2348f2d1cf72823', text: '2017-09-22'},
{pid: '59ccb9675fba3242652c908b', text: '2017-09-28'}, // 20
{pid: '59e9ee079e3fa71ac066e530', text: '2017-10-20'}, // 22
{pid: '5a0014dc1ef61f5d21d6b940', text: '2017-11-06'} // 24
]
let options = {
altizureApi:{
key: '7MkQf8UggsPaadvrlKALspJWZejZAJOLHn3cnIy'
},
camera: {
poseTo: { alt:1200,
lat:22.538388886344876,
lng:113.94255600866971 },
flyTo: { alt:1020,
lat:22.538388886344876,
lng:113.94255600866971,
north:-27.271585092584015,
tilt:74.7023627906978 }
},
renderItems: {
earth: false,
earthUseTexture: false,
featureInView: false,
orbitRing: false
}
}
let sandbox = new altizure.Sandbox('page-content', options)
timelineLayout(sandbox, projects, {
cameraPos: {
lng: 113.94255600866971,
lat: 22.538388886344876,
alt: 1020
},
projOffset: {
lng: 0.009,
lat: 0.006
},
labelOffset: {
lng: -0.004,
lat: 0
},
title: '奉贤 11-01 地块变迁图 ©伊比路'
})
}
document.addEventListener("DOMContentLoaded", onPageLoaded)
</script>
</body>
</html>