Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi-select with the transform interaction and multi polygon transform #1034

Open
Zeleksonob opened this issue Mar 7, 2024 · 1 comment
Labels

Comments

@Zeleksonob
Copy link

Zeleksonob commented Mar 7, 2024

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

@Viglino
Copy link
Owner

Viglino commented Mar 8, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants