-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
47 lines (46 loc) · 1.17 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
<title>Get started with SceneView - Create a 3D map</title></p>
<style>
html, body {
padding: 0;
margin: 0;
}
</style>
<link rel="stylesheet" href="https://js.arcgis.com/4.0beta3/esri/css/main.css">
<script src="https://js.arcgis.com/4.0beta3/"></script>
<script>
require([
"esri/Map",
"esri/views/SceneView",
"dojo/domReady!",
"esri/Camera"
], function(Map, SceneView){
var map = new Map({
basemap: "satellite"
});
var view = new SceneView({
container: "viewDiv", //reference to the scene div created in step 5
map: map, //reference to the map object created before the scene
scale: 9000, //sets the initial scale to 1:50,000,000
center: [-121.914473,37.8818], //sets the center point of view with lon/lat
camera: {
position: [-121.916184,37.867687,1500],
tilt: 80
}
});
// Example 1: Load from a file
var geoJsonLayer1 = new GeoJsonLayer({
url: "summithike.json"
});
map.addLayer(geoJsonLayer1);
});
</script>
</head>
<body>
<div id="viewDiv"></div>
</body>
</html>