--
You received this message because you are subscribed to the Google Groups "marzipano" group.
To unsubscribe from this group and stop receiving emails from it, send an email to marzipano+...@googlegroups.com.
To post to this group, send email to marz...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/marzipano/9e01b452-ca6c-4522-8d40-be95d5916e4f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
It can be done with Javascript by listening for the `sceneChange`
Tried this in index.js, but doesn't work. What I did wrong?
function switchScene(scene) {
var myyaw = scene.view._yaw; // read current yaw
scene.view.setParameters(scene.data.initialViewParameters);
scene.view._yaw = myyaw; // keep current yaw
scene.scene.switchTo();
startAutorotate();
updateSceneName(scene);
updateSceneList(scene);
}
--
You received this message because you are subscribed to the Google Groups "marzipano" group.
To unsubscribe from this group and stop receiving emails from it, send an email to marzipano+...@googlegroups.com.
To post to this group, send email to marz...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/marzipano/1304f2dd-6120-4ddf-bff4-5369de5a19ab%40googlegroups.com.
vat myjaw = 0;
wrapper.addEventListener('click', function () {
myjaw = hotspot.yaw;
scene.view.setParameters(scene.data.initialViewParameters);
scene.view._yaw = myjaw;