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.
Video Player is loading.
Current Time 0:00
/
Duration 0:00
Loaded: 0%
Stream Type LIVE
Remaining Time -0:00
1x
Chapters
descriptions off, selected
captions settings, opens captions settings dialog
captions off, selected
This is a modal window.
Beginning of dialog window. Escape will cancel and close the window.
End of dialog window.
This is a modal window. This modal can be closed by pressing the Escape key or activating the close button.