|
4 | 4 | <meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no"/>
|
5 | 5 | <title>Building Viewer</title>
|
6 | 6 | <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"> |
8 | 8 | <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">
|
9 | 9 | <link rel="stylesheet" href="./src/css/main.css">
|
10 | 10 | <link rel="stylesheet" href="./src/js/sections/css/sections.css">
|
|
22 | 22 | ]
|
23 | 23 | };
|
24 | 24 | </script>
|
25 |
| - <script src="https://js.arcgis.com/4.12/"></script> |
| 25 | + <script src="https://js.arcgis.com/4.20/"></script> |
26 | 26 | <!-- include: "type": "js", "files": "**/*.js" -->
|
27 | 27 | </head>
|
28 | 28 | <body>
|
29 | 29 | <div id="mainViewDiv"></div>
|
30 | 30 | <div id="appDiv">
|
31 |
| - <div id="floorLegend"></div> |
32 |
| - <div id="popup"></div> |
33 | 31 | </div>
|
34 | 32 | <script>require([
|
35 | 33 | "app/BuildingViewer",
|
36 |
| - "app/config" |
| 34 | + "app/config", |
| 35 | + "dojo/domReady!" |
37 | 36 | ],
|
38 | 37 | function(
|
39 | 38 | BuildingViewer,
|
|
48 | 47 | websceneId: config.websceneId,
|
49 | 48 |
|
50 | 49 | // 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") |
52 | 54 | };
|
53 | 55 |
|
54 | 56 | if (config.portalUrl) {
|
|
63 | 65 | args.extraQuery = config.extraQuery;
|
64 | 66 | }
|
65 | 67 |
|
66 |
| - new BuildingViewer(args, |
67 |
| - // The container where to display the html element: |
68 |
| - "appDiv"); |
| 68 | + new BuildingViewer(args); |
69 | 69 | });</script>
|
70 | 70 | </body>
|
71 | 71 | </html>
|
0 commit comments