Marzipano iframe selected scene

502 views
Skip to first unread message

deluca....@gmail.com

unread,
May 7, 2017, 12:16:48 PM5/7/17
to marzipano
Hi guys,

in iframe use or browser use can I get an address to point to selected scene I want of my virtual tour?

For example my virtual tour start with Scene-1 but I want to be free to embed the virtual tour starting with Scene-3.

Or in browser use go directly to Scene-3.

Thanks eb
Best
Valerio

Manuel Cabral

unread,
May 8, 2017, 12:48:39 PM5/8/17
to Valerio De Luca, marzipano
Hi,

One way to achieve this is to add the initial scene ID to the URL fragment and modifying the code that loads the initial scene. For instance, you could use a URL like `http://www.example.com/mytour#start=Scene-3`. The code generated by the Marzipano tool does something like `switchScene(scenes[0]);` when it starts. This should be modified to first check if there is a scene in `window.location.hash` and load that scene.

All the best,
Manuel

Valerio

--
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+unsubscribe@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/01e008c4-fefb-4f17-bb05-500ffa96afcd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

deluca....@gmail.com

unread,
May 9, 2017, 4:15:30 AM5/9/17
to marzipano
ok tks, i get it so n so...

like this? 
 
<div id="sceneList">
  <ul class="scenes">
    
      <a href="#" id="0" class="scene" data-id="0-borgo-vecchio">
        <li class="text">Borgo Vecchio</li>
      </a>
    
      <a href="#" id="1" class="scene" data-id="1-belvedere">
        <li class="text">Belvedere</li>
      </a>
    
      <a href="#" id="2" class="scene" data-id="2-il-giglio-di-maja">
        <li class="text">Il Giglio Di Maja</li>
      </a>
    
      <a href="#" id="3" class="scene" data-id="3-memoriale">
        <li class="text">Memoriale</li>
      </a>
    
  </ul>
</div> 
Message has been deleted

Manuel Cabral

unread,
May 9, 2017, 10:36:01 AM5/9/17
to Valerio De Luca, marzipano
I think it shouldn't be necessary to do any changes to the HTML code, just to the JavaScript code around here.

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to marz...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages