This may well be user error, but in my map I have a SymbolLayer that I want to set the offset and rotate of the image on.
This used to be updated relatively infrequently, so what I did was:
Rotate the image as desired using UIKit methods
Offset the image as desired using iconOffset property of the SymbolLayer.
Since this image is now updated more frequently, I switched the implementation to:
Assign iconRotate and iconOffset properties on the SymbolLayer as appropriate.
However, the implementation appears to apply in this order:
Offset
Rotate
Which results in behavior that isn't desired. I also attempted to use iconTranslate with similar effects.
It would be nice to specify the order of operations of the image to choose between "spinning and moving" vs "orbiting".
New Feature
This may well be user error, but in my map I have a
SymbolLayer
that I want to set the offset and rotate of the image on.This used to be updated relatively infrequently, so what I did was:
iconOffset
property of theSymbolLayer
.Since this image is now updated more frequently, I switched the implementation to: Assign
iconRotate
andiconOffset
properties on theSymbolLayer
as appropriate.However, the implementation appears to apply in this order:
Which results in behavior that isn't desired. I also attempted to use
iconTranslate
with similar effects.It would be nice to specify the order of operations of the image to choose between "spinning and moving" vs "orbiting".
There are plenty of resources on this but if it helps, here is one: https://bobobobo.wordpress.com/2011/12/20/rotation-translation-vs-translation-rotation/
Is there a path I'm missing? Maybe this is already possible?
Why
I would like to be able to specify rotation and offset for images in either order based on the business case.