|
52 | 52 | function startup(Cesium) {
|
53 | 53 | 'use strict';
|
54 | 54 | //Sandcastle_Begin
|
55 |
| -var viewer = new Cesium.Viewer('cesiumContainer'); |
| 55 | +var viewer = new Cesium.Viewer('cesiumContainer', { |
| 56 | + terrainProvider: Cesium.createWorldTerrain() |
| 57 | +}); |
| 58 | + |
56 | 59 | var scene = viewer.scene;
|
57 | 60 | var camera = scene.camera;
|
58 | 61 |
|
59 |
| -var center = new Cesium.Cartesian3(1216378.730451297, -4736275.917774027, 4081266.871000864); |
| 62 | +var center = new Cesium.Cartesian3(1216389.3637977627, -4736323.641980423, 4081321.7428341154); |
60 | 63 | var modelMatrix = Cesium.Transforms.eastNorthUpToFixedFrame(center);
|
61 | 64 | var hprRotation = Cesium.Matrix3.fromHeadingPitchRoll(new Cesium.HeadingPitchRoll(2.619728786416368, 0.0, 0.0));
|
62 | 65 | var hpr = Cesium.Matrix4.fromRotationTranslation(hprRotation, new Cesium.Cartesian3(0.0, 0.0, -2.0));
|
|
78 | 81 | classificationType : Cesium.ClassificationType.CESIUM_3D_TILE
|
79 | 82 | }));
|
80 | 83 |
|
81 |
| -center = new Cesium.Cartesian3(1216398.6054139996, -4736204.533089285, 4081338.6585485404); |
| 84 | +center = new Cesium.Cartesian3(1216409.0189737265, -4736252.144235287, 4081393.6027081604); |
82 | 85 | modelMatrix = Cesium.Transforms.eastNorthUpToFixedFrame(center);
|
83 | 86 | hprRotation = Cesium.Matrix3.fromHeadingPitchRoll(new Cesium.HeadingPitchRoll(5.785339046755887, 0.0, 0.0));
|
84 | 87 | hpr = Cesium.Matrix4.fromRotationTranslation(hprRotation, new Cesium.Cartesian3(0.4, 0.0, -2.0));
|
|
99 | 102 | classificationType : Cesium.ClassificationType.CESIUM_3D_TILE
|
100 | 103 | }));
|
101 | 104 |
|
102 |
| -center = new Cesium.Cartesian3(1216394.3346955755, -4736207.431365568, 4081336.7768881875); |
| 105 | +center = new Cesium.Cartesian3(1216404.8844045496, -4736255.287065536, 4081392.010192471); |
103 | 106 | modelMatrix = Cesium.Transforms.eastNorthUpToFixedFrame(center);
|
104 | 107 | hprRotation = Cesium.Matrix3.fromHeadingPitchRoll(new Cesium.HeadingPitchRoll(5.785339046755887, 0.0, 0.0));
|
105 | 108 | hpr = Cesium.Matrix4.fromRotationTranslation(hprRotation, new Cesium.Cartesian3(-0.25, 0.0, -2.0));
|
|
120 | 123 | classificationType : Cesium.ClassificationType.CESIUM_3D_TILE
|
121 | 124 | }));
|
122 | 125 |
|
123 |
| -center = new Cesium.Cartesian3(1216388.1664430483, -4736210.034324032, 4081332.9324705894); |
| 126 | +center = new Cesium.Cartesian3(1216398.813990024, -4736258.039875737, 4081387.9562678365); |
124 | 127 | modelMatrix = Cesium.Transforms.eastNorthUpToFixedFrame(center);
|
125 | 128 | var translation = Cesium.Matrix4.fromTranslation(new Cesium.Cartesian3(0.0, 0.0, -2.0));
|
126 | 129 | Cesium.Matrix4.multiply(modelMatrix, translation, modelMatrix);
|
|
140 | 143 | classificationType : Cesium.ClassificationType.CESIUM_3D_TILE
|
141 | 144 | }));
|
142 | 145 |
|
143 |
| -center = new Cesium.Cartesian3(1216383.1478702603, -4736211.716097012, 4081329.551077661); |
| 146 | +center = new Cesium.Cartesian3(1216393.6257790313, -4736259.809075361, 4081384.4858198245); |
144 | 147 | modelMatrix = Cesium.Transforms.eastNorthUpToFixedFrame(center);
|
145 | 148 | translation = Cesium.Matrix4.fromTranslation(new Cesium.Cartesian3(0.0, 0.0, -1.0));
|
146 | 149 | Cesium.Matrix4.multiply(modelMatrix, translation, modelMatrix);
|
|
162 | 165 |
|
163 | 166 | function highlightBuilding() {
|
164 | 167 | camera.setView({
|
165 |
| - destination : new Cesium.Cartesian3(1216390.8470847877, -4736277.616363206, 4081242.6450737054), |
| 168 | + destination : new Cesium.Cartesian3(1216394.1392207467, -4736348.59346919, 4081293.9160685353), |
166 | 169 | orientation : {
|
167 |
| - heading : 5.761321440006161, |
168 |
| - pitch : 0.2784799327743841 |
| 170 | + heading : 0.018509338875732695, |
| 171 | + pitch : -0.09272999615872646 |
169 | 172 | }
|
170 | 173 | });
|
171 | 174 | }
|
172 | 175 |
|
173 | 176 | function highlightTrees() {
|
174 | 177 | camera.setView({
|
175 |
| - destination : new Cesium.Cartesian3(1216424.420697336, -4736234.517874706, 4081307.8699144847), |
| 178 | + destination : new Cesium.Cartesian3(1216435.0352745096, -4736283.144192113, 4081368.0920420634), |
176 | 179 | orientation : {
|
177 |
| - heading : 5.785339046755887, |
178 |
| - pitch : -0.2622665042613537 |
| 180 | + heading : 5.718380792746039, |
| 181 | + pitch : -0.3087010195266797 |
179 | 182 | }
|
180 | 183 | });
|
181 | 184 | }
|
|
195 | 198 | scene.invertClassificationColor.alpha = parseFloat(value);
|
196 | 199 | }
|
197 | 200 |
|
198 |
| -var tileset = new Cesium.Cesium3DTileset({ url: Cesium.IonResource.fromAssetId(3836) }); |
| 201 | +var tileset = new Cesium.Cesium3DTileset({ url: Cesium.IonResource.fromAssetId(5712) }); |
199 | 202 | scene.primitives.add(tileset);
|
200 | 203 |
|
201 | 204 | var viewModel = {
|
|
0 commit comments