Hi guys,
in Panotour Pro, if we wanted to add a video/image/iframe hotspot, there was an option which allowed the user to draw a rectangle like this:
and when the user builds the tour, the PTP calculate the ath, atv, width, height, rx, ry and rz automatically and creates a hotspot like this:
<hotspot name="spotwebcontent12"
devices="html5"
renderer="css3d"
tag="webcontent"
visible="false"
distorted="true"
url="%FIRSTXML%/graphics/spotsback.png"
ath="86.835291"
atv="4.544734"
width="490"
height="274"
rx="3.8777501015219804"
ry="1.6241318375190006"
rz="0.22828592005649509"
enabled="true"
capture="false"
handcursor="false"
zorder="2"
zorder_backup="2"
onloaded="add_iframe(https://www.youtube.com/, get(width), get(height));"
/>
Display More
is there any way that we can get 4 corners coordinates of a rectangle from the user and calculate the hotspot parameters by ourselves? to have a result like this:
Thanks,
Hamid