Sie sind nicht angemeldet.

1

Mittwoch, 10. Februar 2021, 22:44

«Flyout Hotspots» Extended Features

Hi,

Based on the "Flyout Hotspots" code, I need more features for a project.

See this test-pano: https://virtualpanorama.ch/infopanels-test/

With the 2 buttons you can show detail-infos and hide them by clicking on the panel.
The code is extended so that the panels rotate with the panorama.
Link to the xml: https://virtualpanorama.ch/infopanels-te…ut-hotspots.xml

Now I need 2 different hotspot areas on the panels:
top left click to hide and bottom right when click "more...." a new html page should be opened in the browser.

Can this be implemented with the KRPano viewer?

Cheers,
Cyrill

2

Montag, 15. Februar 2021, 15:35

...No one? *cry*

Beiträge: 1 117

Wohnort: Poland, Europe

Beruf: krpano developer : virtual tours : the cms4vr owner

  • Nachricht senden

3

Montag, 15. Februar 2021, 17:53

Hi, if you want separate an action on a silnge onclick event, then you must create more code for this eg this:

Quellcode

1
2
3
4
5
6
7
<hotspot name="panel1" url="karton.png" keep="true" zorder="1" ath="20" atv="0" scale="1" edge="bottom" zoom="false" onclick="onclick_act()" />

<action name="onclick_act">
   trace('hitx: ',get(hitx),' hity: ',get(hity));
   if(hitx LT 0.08 AND hity LT 0.73, removehotspot(get(name)));
   if(hitx GT 0.83 AND hity GT 0.86, openurl('https://cms4vr.com',_blank));
</action>


Piotr
Your own professional, online cloud tool for creating virtual tours - www.cms4vr.com

facebook page :: youtube :: wiki.cms4vr.com

cms4vr team *thumbsup*

4

Mittwoch, 17. Februar 2021, 22:02

@Piotr
cool, it works now! *thumbsup*
https://virtualpanorama.ch/infopanels-test/

I had to adjust your code a bit, but I would never have thought of defining the 2nd hotspot click zone with the "trace" function.

Thanks again for your input!

Cheers,
Cyrill