Drag the plane/points/rectangle to move or change their size


Thank you.
Now that I am creating rectange and plane, using viewer.entities.There is one way to set a length of the plane in the function. But would it also possible to change the length of the plane by dragging the shape?

If the manipulation above is not possible to do, I would like to change the length using the bar in the screen. Are there any functions regarding this manipulation of the shapes?

You can solve it by add one(or more) controller point(an point/shpere entity).When drag the entity, calc the distance or offset and use it to change the shape

I have a sandcastle doing something like this, have a look to see if you can adapt it to your use case. (in order to see it working, zoom in on the globe, and start dragging with the shift key down).

1 Like