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
A concise explanation of the problem you're experiencing.
var dynamicPositions = new Cesium.CallbackProperty(function () {
return positions;
}, false);
This used to be a valid input for a polygon entity hierarchy, but now since CesiumJs version 1.60 this no longer works. This approach follows what was (at some point at least) the suggested method from one of the Sandcastle examples to allow users to draw in the scene. This approach still works for at least polylines and billboards. Seems very likely the issue must be related to this update in the 1.60 release "Added support for polygon holes to CZML." The example below should clarify the problem.
A minimal code example. If you've found a bug, this helps us reproduce and repair it.
Switching to the commented out code provides a more helpful error report, but also fails. Changing "hierarchy: dynamicPositions" to just "hierarchy: positions" behaves normally, but of course if this example actually leveraged the callback in a meaningful way this would be undesirable.
Context. Why do you need to do this? We might know a better way to accomplish your goal.
We're using position callback properties for dynamic editing.
The Cesium version you're using, your operating system and browser.
Last working in Cesium 1.59.
Broken in Cesium 1.60 and 1.61.
(Ubuntu 19.04 + Chrome)
The text was updated successfully, but these errors were encountered:
PolygonGraphics.hierarchy was always documented as a property of type PolygonHierarchy, meaning that any Property must produce a value of that type. That would include the CallbackProperty from your example:
Adapting a constant Cartesian array to a PolygonHierarchy was left for backwards compatibility, but using a Cartesian array was undocumented behavior since the hierarchy property was introduced.
This used to be a valid input for a polygon entity hierarchy, but now since CesiumJs version 1.60 this no longer works. This approach follows what was (at some point at least) the suggested method from one of the Sandcastle examples to allow users to draw in the scene. This approach still works for at least polylines and billboards. Seems very likely the issue must be related to this update in the 1.60 release "Added support for polygon holes to CZML." The example below should clarify the problem.
Sandcastle
Switching to the commented out code provides a more helpful error report, but also fails. Changing "hierarchy: dynamicPositions" to just "hierarchy: positions" behaves normally, but of course if this example actually leveraged the callback in a meaningful way this would be undesirable.
We're using position callback properties for dynamic editing.
Last working in Cesium 1.59.
Broken in Cesium 1.60 and 1.61.
(Ubuntu 19.04 + Chrome)
The text was updated successfully, but these errors were encountered: