-
Notifications
You must be signed in to change notification settings - Fork 5
/
_test.html
65 lines (63 loc) · 2.05 KB
/
_test.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
<!DOCTYPE html>
<html>
<head>
<title>Test</title>
<meta http-equiv='content-type' content='text/html;charset=utf-8' />
<meta name='viewport' content='width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no' />
<link type='text/css' rel='stylesheet' href='//js.arcgis.com/4.5/esri/css/main.css' />
<style>
html, body {
overflow: hidden;
margin: 0;
padding: 0;
height: 100%;
width: 100%;
font-family: 'Avenir Next W00','Helvetica Neue',Helvetica,Arial,sans-serif;
}
#map {
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
}
</style>
<script type='text/javascript' src='//js.arcgis.com/4.5/'></script>
<script>
require(
[
'esri/WebScene',
'esri/views/SceneView',
'dojo/domReady!'
],
function (
WebScene,
SceneView
) {
'use strict';
var view = new SceneView({
container: 'map',
map: new WebScene({
portalItem: {
id: '3e17e7850ccf44c688970300fa3fa5f0',
}
})
});
view.then(function () {
window.requestAnimationFrame(gameloop);
});
function gameloop() {
// ----------------------------------------------------------------------------
// Uncommenting the following line will prevent the scenelayer from appearing!
// ----------------------------------------------------------------------------
//view.camera = view.camera.clone();
window.requestAnimationFrame(gameloop);
}
}
);
</script>
</head>
<body>
<div id='map'></div>
</body>
</html>