|
33 | 33 | </div>
|
34 | 34 | <script>require([
|
35 | 35 | "app/BSLDemo",
|
36 |
| - "app/sections/HomeSection", |
37 |
| - "app/sections/SurroundingsSection", |
38 |
| - "app/sections/FloorsSection", |
| 36 | + "app/config" |
39 | 37 | ],
|
40 | 38 | (
|
41 | 39 | BSLDemo,
|
|
55 | 53 | mapContainer: "mainViewDiv",
|
56 | 54 |
|
57 | 55 | // The id to the scene for the BSL you'd like to display:
|
58 |
| - websceneId: "b753b2ba04ef477ca46a5b8bd9766d2d", |
59 |
| - buildingLayerTitle: "Turanga Library", |
60 |
| - surroundingsLayerTitle: "City Model Christchurch", |
| 56 | + websceneId: config.websceneId, |
| 57 | + buildingLayerTitle: config.buildingLayerTitle, |
| 58 | + surroundingsLayerTitle: config.surroundingsLayerTitle, |
61 | 59 |
|
62 | 60 | // The url to a SceneService displaying the surrounding:
|
63 | 61 | // surroundingsLayer: "https://services.arcgis.com/hLRlshaEMEYQG5A8/arcgis/rest/services/Scenechch_WSL1/SceneServer",
|
|
67 | 65 | // "https://services.arcgis.com/hLRlshaEMEYQG5A8/arcgis/rest/services/Scenechch_WSL1/SceneServer",
|
68 | 66 |
|
69 | 67 | // Your different sections:
|
70 |
| - sections: [ |
71 |
| - // Check the different files |
72 |
| - // to adapt to your need |
73 |
| - // or create a new section by |
74 |
| - // implement a subclass from `Section` |
75 |
| - |
76 |
| - // The about Tarangua section: |
77 |
| - new HomeSection(), |
78 |
| - // The different floors: |
79 |
| - new FloorsSection(), |
80 |
| - // Surroundings: |
81 |
| - new SurroundingsSection() |
82 |
| - ] |
| 68 | + sections: config.sections |
83 | 69 | }, "appDiv");
|
84 | 70 | });</script>
|
85 | 71 | </body>
|
|
0 commit comments