AnsweredAssumed Answered

Editable rectangle

Question asked by cscillieri@siveco.com on Feb 13, 2015
Latest reply on Feb 13, 2015 by cscillieri@siveco.com

Hi All,

Is there a way to edit a graphic rectangle the same way it is possible for polygons, using Edit class ?

 

Instead of a rectangle I use graphic polygons and I can move 4 points around. OK.

But I cant get to have it constrained to a simple rectangle at moving time, or even at the end of move.

In a "vertex-move" event I tried to retrieve transformations to keep my polygon a rectangle but I failed in doing this because transformation from pixels (ev.transform.dx, ev.transform.dy) to map doesnt give a good result.

 

Any idea ?

Regards.

Chris.

Outcomes