-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathindex.html
193 lines (160 loc) · 4.93 KB
/
index.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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
<!DOCTYPE html>
<html>
<head>
<title>Animated Environment Layer</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<style>
html, body {
height: 100%;
width: 100%;
margin: 0;
padding: 0;
font-family: abel, Arial, Calibri;
overflow: hidden;
}
#container, .view {
width: 100%;
height: 100%;
padding: 0;
margin: 0;
position: relative;
}
.view.hidden {
position: absolute;
z-index: -10;
}
/* top menu */
#top-menu {
-webkit-box-shadow: 2px 3px 22px 0px rgba(173, 173, 173, 0.75);
-moz-box-shadow: 2px 3px 22px 0px rgba(173, 173, 173, 0.75);
box-shadow: 2px 3px 22px 0px rgba(173, 173, 173, 0.75);
position: absolute;
left: 10px;
top: 10px;
padding: 0 10px;
height: 45px;
width: auto;
background: rgba(46, 68, 94, 0.8);
z-index: 2001;
color: #FFF;
}
#top-menu .section {
display: inline-block;
height: 100%;
padding: 0 5px;
padding-top: 10px;
}
#top-menu .separator {
height: 100%;
width: 3px;
border-right: 1px solid #d0d0d0;
padding: 0;
}
#top-menu .button {
display: inline-block;
height: 100%;
color: #FFF;
margin: 0 5px;
background: none;
border: none;
cursor: pointer;
width: 85px;
padding: 0;
}
#top-menu .button.active {
font-weight: bold;
background: rgba(0,0,0,0.1);
border: 1px solid rgba(255,255,255,0.1);
}
#top-menu .button:focus {
outline: none;
}
#top-menu .button:hover {
opacity: 0.7;
transition: opacity 0.4s;
}
#top-menu select {
font-size: 1em;
height: 60%;
font-family: abel, Arial;
}
#report-container {
position: absolute;
bottom: 20px;
left: 10px;
background: rgba(0, 0, 0, 0.6);
color: #fff;
padding: 5px 10px;
}
@media (min-width: 320px) and (max-width: 639px) {
#top-menu #title-text {
display: none;
}
#top-menu .button {
width: 75px;
margin: 0;
}
}
</style>
<link href="//fonts.googleapis.com/css?family=Abel" rel="stylesheet">
<link rel="stylesheet" href="https://js.arcgis.com/4.21/esri/css/main.css">
<script>
var dojoConfig = {
async: true,
tlmSiblingOfDojo: false,
packages: [{
name: "ael",
location: "/ael"
}]
};
</script>
<script src="https://js.arcgis.com/4.21/"></script>
<script type="text/javascript">
require([
"ael/pageSetup",
"dojo/domReady!"
], function (
pageSetup
) {
var setup = new pageSetup.PageSetup();
setup.init();
});
</script>
</head>
<body>
<div id="container">
<div class="view" id="map-view">
</div>
<div class="view" id="scene-view">
</div>
<div id="top-menu">
<div class="section text">
<span id="title-text">Environment Layer - </span><span>API v4.21</span>
</div>
<span class="separator"></span>
<div class="section">
<select id="basemap-select">
<option selected="selected">satellite</option>
<option>dark-gray</option>
<option>gray</option>
<option>streets</option>
</select>
</div>
<div class="section">
<select id="data-select"></select>
</div>
</div>
<div id="report-container">
Direction:
<span id="direction"></span>°
|
Velocity:
<span id="speed"></span>
</div>
</div>
</body>
</html>