showtext([b][i]krpano[br]compass example[/i][/b][br][br][font size='20']via images and xml[/font], infostyle);
set(heading, 0);
action(add_compass_spots);
sub(plugin[compass_pointer].rotate, view.hlookat, heading);
sub(plugin[compass2_plate].rotate, heading, view.hlookat);
div(tiltpos, view.vlookat, -180);
mul(tiltmax, plugin[tiltmeter].height, 0.45);
mul(plugin[tiltmeter].oy, tiltpos, tiltmax);
addhotspot(%1);
set(hotspot[%1].url,%CURRENTXML%/hotspots.png);
set(hotspot[%1].crop,%3);
add(hotspot[%1].ath,%2,heading);
set(hotspot[%1].atv,0);
set(hotspot[%1].scale,%4);
set(hotspot[%1].scale1,%4);
mul(hotspot[%1].scale2,%4,2);
set(hotspot[%1].zoom,true);
set(hotspot[%1].onover,tween(scale,$scale2));
set(hotspot[%1].onout,tween(scale,$scale1));
set(hotspot[%1].onclick,lookto(%2,0,90));
action(addhotspot, n, 0, 0|0| 76|76, 1.0);
action(addhotspot, no, 45, 78|0|118|76, 0.5);
action(addhotspot, o, 90, 202|0| 71|76, 1.0);
action(addhotspot, so, 135, 281|0|109|76, 0.5);
action(addhotspot, s, 180, 400|0| 69|76, 1.0);
action(addhotspot, sw, 225, 469|0|134|76, 0.5);
action(addhotspot, w, 270, 603|0| 86|76, 1.0);
action(addhotspot, nw, 315, 689|0|141|76, 0.5);