In 3D view the marker's dir will return 0 (zero) even though in map view the marker points to something like 146, in preview the dir is somewhere near 0 and looking at map it points to that somewhere near 0 dir (the dir seems to fluctuate between -3 and 3 there)..
The rectangle/ellipse and the 'icon' markers also behave a bit differently in this regard, see repro steps.