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

How do transform image like transform interaction? #1076

Open
easy868 opened this issue Jun 19, 2024 · 3 comments
Open

How do transform image like transform interaction? #1076

easy868 opened this issue Jun 19, 2024 · 3 comments
Labels

Comments

@easy868
Copy link

easy868 commented Jun 19, 2024

like this https://viglino.github.io/ol-ext/examples/interaction/map.interaction.transform.html,but target is a icon or imageLayer

@Viglino
Copy link
Owner

Viglino commented Jun 19, 2024

Here is an example with an icon: https://codepen.io/viglino/pen/bGLRggv
It uses an icon style to display the icon inside a polygon feature that is handled by the transform interaction

@easy868
Copy link
Author

easy868 commented Jun 20, 2024

Here is an example with an icon: https://codepen.io/viglino/pen/bGLRggv It uses an icon style to display the icon inside a polygon feature that is handled by the transform interaction

Thank you for the example. By the way, can the anchor point be customized for rotation?

@Viglino
Copy link
Owner

Viglino commented Jun 20, 2024

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