ol-ext icon indicating copy to clipboard operation
ol-ext copied to clipboard

Multi-select with the transform interaction and multi polygon transform

Open Zeleksonob opened this issue 1 year ago • 1 comments

Hi Guys,

We developing our app with OpenLayers, and we have a need to select multi features and rotate/scale and move them. it seems the Transform interaction is a single select, is there a way to implement and rotate/scale/move multi features?

we also tried to select as multi polygon but it seems when scaling the multipolygon that has rotate rectangles they lose their shape and become parallelograms , also when transform the multi-polygon some of the rectangles before the multi polygon have different style and selecting them as 1 multipolygon break it until be 'break' the transform,

how hard is to implement multi-select transoform ? can you put we on the right direction where I need to make changes?

also it seems the multi select not selecting when keepRectangle set to true, which is exactly what We need to work

Zeleksonob avatar Mar 07 '24 19:03 Zeleksonob

Hi,

ol/interaction/Transform works on multi polygons and you can select many objects to treat them in a bulk. keepRectangle only apply on one object (a rectangle) and try to transform it using main direction instead of the X,Y

transform

Viglino avatar Mar 08 '24 07:03 Viglino