how to draw polygon?

I want to draw two things: a polygon from clicking on points, and a circle with varying radius in cesium (draw meaning user clicks a point, then moves mouse to resize circle), how do I do this? I looked at Cesium DrawHelper, but the code is very out of date and does not work.

Hello,

There is no support for this functionality in core Cesium, so you would have to implement your own system. You can get the globe position on click using scene.pickEllipsoid(mousePosition) then you can send the new position to the positions property of a polygion entity.

Best,

Hannah