Heading line?

I wanted to create a heading line, think compass needle, that has a fixed geo location on one end, has a fixed pixel length, and always points in the same direction even as the globe is rotated.

I tried doing it with a billboard of a line and using the ALIGNED_AXIS property with a UNIT_Z vector, but the entire line seems to be rotating with the globe. I'm not sure if I'm using the ALIGNED_AXIS property correctly or it's not meant to do what I want.

Cesium version is 1.30 using Firefox 44 on Linux.

Thanks,
  Tony

Hi Tony,

I believe the “rotation” property will do what you want. You can see a working example here in Sandcastle: http://cesiumjs.org/Cesium/Apps/Sandcastle/index.html?src=Billboards.html&label=

Hope that helps! Let me know if you need more pointers.

Best,

  • Rachel

The rotation property did the trick.
Thanks,
  Tony