I'm afraid that you have to add points manually, luckily with new Krpano we could achieve this really easy by utilizing "onloaded.addevent". Please check this example:
Code
<style name="test_poly" fillalpha="0.8" keep="true" onloaded.addevent="add_points">
<point name="n1" ath="0" atv="0"/>
<point name="n2" ath="10" atv="10"/>
<point name="n3" ath="0" atv="20"/>
<point name="n4" ath="-10" atv="10"/>
</style>
<action name="add_points" scope="local">
for (set(i, 0), i LT style[test_poly].point.count, inc(i),
debugvar(style[test_poly].point[get(i)].ath);
copy(caller.point[get(i)].ath, style[test_poly].point[get(i)].ath);
copy(caller.point[get(i)].atv, style[test_poly].point[get(i)].atv);
);
// delele init point
set(caller.point[init].name, null);
</action>
<action name="test_startup" autorun="onstart">
addhotspot('test_hotspot');
// Must set an init point or the hotspot will never be loaded
// Could be deleted later
set(hotspot['test_hotspot'],
point[init].ath=500,
point[init].atv=400,
);
hotspot['test_hotspot'].loadstyle(test_poly);
</action>
Display More


