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
If one entity has a composite position (a position using time intervals), and another entity attempts to reference that position, the render loop throws. Here's some CZML:
TypeError: Cannot read property 'length' of undefined
at subSampleCompositeProperty (http://c1200610-00.stk.com/Cesium/Source/DataSources/PathVisualizer.js:208:38)
at reallySubSample (http://c1200610-00.stk.com/Cesium/Source/DataSources/PathVisualizer.js:246:21)
at subSample (http://c1200610-00.stk.com/Cesium/Source/DataSources/PathVisualizer.js:263:22)
at PolylineUpdater.updateObject (http://c1200610-00.stk.com/Cesium/Source/DataSources/PathVisualizer.js:369:30)
at PathVisualizer.update (http://c1200610-00.stk.com/Cesium/Source/DataSources/PathVisualizer.js:472:32)
at DataSourceDisplay.update (http://c1200610-00.stk.com/Cesium/Source/DataSources/DataSourceDisplay.js:260:41)
at Viewer._onTick (http://c1200610-00.stk.com/Cesium/Source/Widgets/Viewer/Viewer.js:1483:49)
at Event.raiseEvent (http://c1200610-00.stk.com/Cesium/Source/Core/Event.js:147:30)
at Clock.tick (http://c1200610-00.stk.com/Cesium/Source/Core/Clock.js:309:21)
at CesiumWidget.render (http://c1200610-00.stk.com/Cesium/Source/Widgets/CesiumWidget/CesiumWidget.js:681:43)
To work around this, copy the position block from the main entity above, and replace the position reference in the other entity with a copy-and-paste of the main position block. Then the CZML will work fine. But, there's no easy way to tell the STK Components CZML writer to use this workaround.
The text was updated successfully, but these errors were encountered:
The fix for this should be trivial, the problem is in reallySubSample in PathVisualizer.js, it unwraps the inner property but then tries to sample the ReferneceProperty instead of the unwrapped property. However, there are dragons here and I found at least 2 other path bugs (one is kind of tricky) while looking at this. I'll see what I can do.
…perties.
Fixes#4915
There were several bugs here:
1. `PathVisualizer` was unwrapping a `ReferenceProperty`, finding a
`CompositePositionProperty` inside, and then using the reference as if
it was a composite instead of using the inner property.
2. Same was 1, but for `TimeIntervalCollectionPositionProperty`
3. We were unwrapping `ScaledPositionProperty` and using the inner property
directly, but this prevented the value from actually being scaled properly.
Now we use the `ScaledPositionProperty` which means it falls back to a
generic sampling path but that's the best solution. (Not to mention that
ScaledPositionProperty is privat and will eventually go away).
If one entity has a composite position (a position using time intervals), and another entity attempts to reference that position, the render loop throws. Here's some CZML:
The error thrown is:
To work around this, copy the
position
block from the main entity above, and replace the position reference in the other entity with a copy-and-paste of the main position block. Then the CZML will work fine. But, there's no easy way to tell the STK Components CZML writer to use this workaround.The text was updated successfully, but these errors were encountered: