A
A
Abra Kadabra2016-06-30 15:04:05
JavaScript
Abra Kadabra, 2016-06-30 15:04:05

How to detect click on 360 photos in XML (made in krpano)?

I have 360 ​​photos, their sources are presented in xml, there are active objects on it.
This is what the active object looks like in the photo:

<hotspot name="spotpolygon123"
           tag="polygon"
           style="Polygonsafe"
           descriptionid=""
           onclick="onclickspotpolygon123"
           >
    <point ath="15.420240" atv="34.748280" />
    <point ath="15.588000" atv="37.721880" />
    <point ath="26.323560" atv="35.587440" />
    <point ath="26.443440" atv="32.733900" />
  </hotspot>
  <hotspot name="spotpolygon123" devices="flash" zorder="1"/>
  <hotspot name="spotpolygon123" devices="html5" zorder="3" zorder2="1"/>

  <action name="onclickspotpolygon123">
  </action>


It is necessary to display a popup by clicking on this object.
But it did not work out to get to it through the ID, since the ID is set, do not understand where.
And, as you can see, there is an on-click action at the bottom. Can I somehow connect a java script function to it somehow? Or is it necessary to write some XML code in this action?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question