Setting Heading of IconSymbol or PlaceNode #1966
-
Is there any way to set heading of IconSymbol or PlaceNode other than 0? I do not want it to stay always upright. I want to rotate it. Thanks. Edit: I found that IconSymbol heading can be set before creating the PlaceNode. But after creating the PlaceNode, I cannot change the heading of the IconSymbol. How can I change the heading dynamically? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
No, the API has no support for that; sorry. |
Beta Was this translation helpful? Give feedback.
-
Have you tried the following in an update callback for your PlaceNode?
This works for us in rotating the icon of a PlaceNode based on a heading. Just be aware that calling "setStyle(...)" forces a recompile of the object using it so it's expensive. Only call it when the heading changes. -S |
Beta Was this translation helpful? Give feedback.
Have you tried the following in an update callback for your PlaceNode?
This works for us in rotating the icon of a PlaceNode based on a heading. Just be aware that calling "setStyle(...)" forces a recompile of the object using it so it's expensive. Only call it when the heading changes.
-S