i always use this code to get spherical coordinates of panorama under mouse pointer:
<action name="get_coordinates">
screentosphere(mouse.x, mouse.y, toh, tov);
roundval(toh, 2);
roundval(tov, 2);
txtadd(txt, 'ath="', get(toh), '" atv="', get(tov), '"');
trace('ath=', toh, ' atv=', tov);
</action>
<events name="coordinates" onmousedown="get_coordinates();" keep="true" />
also if you wanna mesure ath roughly without click and console:
<events name="lookat" onviewchange="copy(hl, view.hlookat); Math.round(hl); copy(layer[tech_info].html, hl); " keep="true" />
<layer name="tech_info" url="plugins/textfield.swf" align="lefttop" html="" keep="true" />