Skip to content

Commit acbbf3a

Browse files
Update to latest API
1 parent b62a92a commit acbbf3a

25 files changed

+1518
-72962
lines changed

index.html

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no"/>
55
<title>Building Viewer</title>
66
<meta name="viewport" content="minimal-ui">
7-
<link rel="stylesheet" href="https://jsdev.arcgis.com/4.12/esri/themes/light/main.css">
7+
<link rel="stylesheet" href="https://jsdev.arcgis.com/4.20/esri/themes/light/main.css">
88
<link rel="stylesheet" href="https://s3-us-west-1.amazonaws.com/patterns.esri.com/files/calcite-web/1.2.4/css/calcite-web.min.css">
99
<link rel="stylesheet" href="./src/css/main.css">
1010
<link rel="stylesheet" href="./src/js/sections/css/sections.css">
@@ -22,18 +22,17 @@
2222
]
2323
};
2424
</script>
25-
<script src="https://js.arcgis.com/4.12/"></script>
25+
<script src="https://js.arcgis.com/4.20/"></script>
2626
<!-- include: "type": "js", "files": "**/*.js" -->
2727
</head>
2828
<body>
2929
<div id="mainViewDiv"></div>
3030
<div id="appDiv">
31-
<div id="floorLegend"></div>
32-
<div id="popup"></div>
3331
</div>
3432
<script>require([
3533
"app/BuildingViewer",
36-
"app/config"
34+
"app/config",
35+
"dojo/domReady!"
3736
],
3837
function(
3938
BuildingViewer,
@@ -48,7 +47,10 @@
4847
websceneId: config.websceneId,
4948

5049
// Your different sections:
51-
sections: config.sections
50+
sections: config.sections,
51+
52+
// The container where to display the html element:
53+
container: document.getElementById("appDiv")
5254
};
5355

5456
if (config.portalUrl) {
@@ -63,9 +65,7 @@
6365
args.extraQuery = config.extraQuery;
6466
}
6567

66-
new BuildingViewer(args,
67-
// The container where to display the html element:
68-
"appDiv");
68+
new BuildingViewer(args);
6969
});</script>
7070
</body>
7171
</html>

0 commit comments

Comments
 (0)