You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: Source/Widgets/Viewer/Viewer.js
+51-6
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,7 @@ define([
24
24
'../../Scene/Cesium3DTileset',
25
25
'../../Scene/ImageryLayer',
26
26
'../../Scene/SceneMode',
27
+
'../../Scene/TimeDynamicPointCloud',
27
28
'../../ThirdParty/knockout',
28
29
'../../ThirdParty/when',
29
30
'../Animation/Animation',
@@ -71,6 +72,7 @@ define([
71
72
Cesium3DTileset,
72
73
ImageryLayer,
73
74
SceneMode,
75
+
TimeDynamicPointCloud,
74
76
knockout,
75
77
when,
76
78
Animation,
@@ -1740,7 +1742,7 @@ Either specify options.terrainProvider instead or set options.baseLayerPicker to
1740
1742
* target will be the range. The heading will be determined from the offset. If the heading cannot be
1741
1743
* determined from the offset, the heading will be north.</p>
1742
1744
*
1743
-
* @param {Entity|Entity[]|EntityCollection|DataSource|ImageryLayer|Cesium3DTileset|Promise.<Entity|Entity[]|EntityCollection|DataSource|ImageryLayer|Cesium3DTileset>} target The entity, array of entities, entity collection, data source, Cesium#DTileset, or imagery layer to view. You can also pass a promise that resolves to one of the previously mentioned types.
1745
+
* @param {Entity|Entity[]|EntityCollection|DataSource|ImageryLayer|Cesium3DTileset|TimeDynamicPointCloud|Promise.<Entity|Entity[]|EntityCollection|DataSource|ImageryLayer|Cesium3DTileset|TimeDynamicPointCloud>} target The entity, array of entities, entity collection, data source, Cesium3DTileset, point cloud, or imagery layer to view. You can also pass a promise that resolves to one of the previously mentioned types.
1744
1746
* @param {HeadingPitchRange} [offset] The offset from the center of the entity in the local east-north-up reference frame.
1745
1747
* @returns {Promise.<Boolean>} A Promise that resolves to true if the zoom was successful or false if the target is not currently visualized in the scene or the zoom was cancelled.
1746
1748
*/
@@ -1766,7 +1768,7 @@ Either specify options.terrainProvider instead or set options.baseLayerPicker to
1766
1768
* target will be the range. The heading will be determined from the offset. If the heading cannot be
1767
1769
* determined from the offset, the heading will be north.</p>
1768
1770
*
1769
-
* @param {Entity|Entity[]|EntityCollection|DataSource|ImageryLayer|Cesium3DTileset|Promise.<Entity|Entity[]|EntityCollection|DataSource|ImageryLayer|Cesium3DTileset>} target The entity, array of entities, entity collection, data source, Cesium3DTileset, or imagery layer to view. You can also pass a promise that resolves to one of the previously mentioned types.
1771
+
* @param {Entity|Entity[]|EntityCollection|DataSource|ImageryLayer|Cesium3DTileset|TimeDynamicPointCloud|Promise.<Entity|Entity[]|EntityCollection|DataSource|ImageryLayer|Cesium3DTileset|TimeDynamicPointCloud>} target The entity, array of entities, entity collection, data source, Cesium3DTileset, point cloud, or imagery layer to view. You can also pass a promise that resolves to one of the previously mentioned types.
1770
1772
* @param {Object} [options] Object with the following properties:
1771
1773
* @param {Number} [options.duration=3.0] The duration of the flight in seconds.
1772
1774
* @param {Number} [options.maximumHeight] The maximum height at the peak of the flight.
@@ -1818,6 +1820,12 @@ Either specify options.terrainProvider instead or set options.baseLayerPicker to
1818
1820
return;
1819
1821
}
1820
1822
1823
+
//If the zoom target is a TimeDynamicPointCloud
1824
+
if(zoomTargetinstanceofTimeDynamicPointCloud){
1825
+
that._zoomTarget=zoomTarget;
1826
+
return;
1827
+
}
1828
+
1821
1829
//If the zoom target is a data source, and it's in the middle of loading, wait for it to finish loading.
0 commit comments