Viglino / ol-ext

Cool extensions for Openlayers (ol) - animated clusters, CSS popup, Font Awesome symbol renderer, charts for statistical map (pie/bar), layer switcher, wikipedia layer, animations, canvas filters.
https://viglino.github.io/ol-ext/
Other
1.21k stars 457 forks source link

How do transform image like transform interaction? #1076

Open easy868 opened 2 weeks ago

easy868 commented 2 weeks ago

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

Viglino commented 2 weeks ago

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 commented 2 weeks ago

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 commented 2 weeks ago

Look at the example: https://viglino.github.io/ol-ext/examples/interaction/map.interaction.transform.html Screenity video - Jun 20, 2024