Skip to content

Fix combination of rotation and displacement#229

Merged
ajkopinga merged 1 commit intomasterfrom
fix-displacement-rotation
Mar 27, 2026
Merged

Fix combination of rotation and displacement#229
ajkopinga merged 1 commit intomasterfrom
fix-displacement-rotation

Conversation

@ajkopinga
Copy link
Copy Markdown
Member

The SLD spec describes that rotation and displacement of a point symbolizer should be independent of another. For instance, if a point is displaced 20 units vertically and is rotated 45 degrees, the center of the symbol should remain at [0, 20] from the center.

Because OpenLayers applies rotation after displacement, the displaced center will be rotated too.

This PR compensates for OpenLayers behavior and ensures that the combination of rotation and displacement happens according to the SLD spec.

@ajkopinga ajkopinga merged commit fc1955d into master Mar 27, 2026
1 check passed
@ajkopinga ajkopinga deleted the fix-displacement-rotation branch April 1, 2026 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant