I'm tracking a vessel's location in my application, and the symbol on the map is rotated based on its heading.
The problem is that this rotation is applied relative to the screen's Cartesian coordinates, rather than the map's actual spatial reference system.
I understand that adjusting for this isn’t straightforward—especially in projections where a straight line doesn’t follow a constant compass bearing (like polar projections).
Right now, I manually calculate the correct angle based on the projection, position, and bearing, while also accounting for map rotation. This is quite complex and requires map rotation watchers, and projection specific logic.
Is there any built-in way to handle this automatically?
Alternatively if this is not possible I can raise this as a separate idea?
Just to add to this... What I've discovered is that if you use a picture marker then it will maintain its rotation with respect to the underlying basemap as the view is rotated. Where as if you use a vector marker it rotates its frame of reference with the map as it rotates.
Is this a bug? Its really counter intuitive and doesn't seem to be documented anywhere?