I am looking for a solution to link krpano with external javascript.
What I want is I set up a hotspot on krpano, and when user click that hotspot, it will dispatch the client event and this event is intercepted by external javascript, so that I will know what object user is selected.
such as:
<hotspot name="hs56313" style="roomspot|skin_tooltips" tooltip="get:scene[lr].title" onclick="select(this);">
<point ath="-18.4" atv="1.4"/>
<point ath="-19.2" atv="7.1"/>
<point ath="-4.6" atv="9.9"/>
<point ath="20.6" atv="0.0"/>
</hotspot>
then in javascript:
select(obj){
console.log(onj)
}
is this possible?
Thanks