Skip to main content
Solved

Any way to rotate an icon in the KML Styler? or another transformer

  • August 28, 2017
  • 5 replies
  • 90 views

Forum|alt.badge.img

Best answer by jdh

You can create an attribute called kml_iconstyle_heading.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

5 replies

danilo_fme
Celebrity
Forum|alt.badge.img+52
  • Celebrity
  • August 28, 2017

Hi @alan_surveyor,

Do you have a icon ( in wich format ) and you want to rotate?

You can use the transformer Rotator.

Thanks,

Danilo


jdh
Contributor
Forum|alt.badge.img+40
  • Contributor
  • Best Answer
  • August 28, 2017

You can create an attribute called kml_iconstyle_heading.


Forum|alt.badge.img

I have either a png or ico file of an arrow pointing straight up. Want to rotate that based on an azimuth, however the KML styler doesn't give an option for a rotation. Not sure where to apply the rotator transformer


jdh
Contributor
Forum|alt.badge.img+40
  • Contributor
  • August 28, 2017

I have either a png or ico file of an arrow pointing straight up. Want to rotate that based on an azimuth, however the KML styler doesn't give an option for a rotation. Not sure where to apply the rotator transformer

I don't believe the Rotator will be of use in this scenario, since presumably your feature is a point that is referencing an external icon via the Styler.

 

 

If you look at the kml writer, under the format attributes, all of the kml specific directives are available. You can expose the ones you explicitly want to set on a per feature basis. In your case the kml_iconstyle_heading.

 

 

Although I've never used that particular option, I would expect that you would set it to your azimuth.

Forum|alt.badge.img

Thanks JDH. That seemed to do the trick. Many thanks!