sorry, your code will not work
the fisheye and littleplanet view is not a simple view setting,
it's a variance of several combined parameters (fisheye,stereographic,vlookat,fov)
add a user defined variable for the button (e.g. "viewmode"),
change the value of this variable (e.g. "planet" or "fisheye") with switch on every click,
and depending on the current value call a action for the change the
view settings (for the view changing actions have a look at the little planet example)
|
Source code
|
1
2
3
4
|
<plugin ...
viewmode="planet"
onclick="switch(viewmode, planet, fisheye); if(viewmode == planet, action(littleplant), action(fisheye));"
/>
|
note - krpano 1.0.8 is needed for this!
best regards,
Klaus