krpano Javascript API Examples

The krpano viewer window:

Buttons to do something via JS:
load pano1.xml
load pano2.xml
load xml string

Set a Random view

Animated Look-to a Random view

Get current view

Add a Hotspot at the current position
Remove all hotspots

Track mouse position