2

I would like to programmatically rotate a feature (or its associated geometry) in OpenLayers3. I know I can rotate the view, but I'd like to apply the rotation to the feature/geometry only.

1
  • You can use the geometry object's rotate method. Commented May 28, 2017 at 12:04

1 Answer 1

1

You can rotate an icon using the style. See the documentation for an icon style. There may be some other styles that also rotate, I'm not sure. This is the only one I've used.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.