Modify script to delete Auto Rotation and Left Side Image Bar

101 views
Skip to first unread message

Florian Luschnig

unread,
Nov 9, 2023, 7:43:41 AM11/9/23
to marzipano
Hi! I have built a Marzipano tour for a real estate listing and Idealista (the biggest Portuguese real estate platform) refuses to accept my tour because I have auto rotation activated and also the left side bar with the individual scenes. Could someone please tell me  where and how to modify the script, so that these features are deactivated by default? Thank you in advance!

Gulshan kumar

unread,
Nov 9, 2023, 8:21:40 AM11/9/23
to marz...@googlegroups.com
Hi,
 
1. Using Script
To do this, you can remove this (if) condition/logic completely which checks for settings in data.js and if autorotateEnabled is true, it adds the class and that triggers the autorotation.
By doing this, you will have autorotation off by default.
if (data.settings.autorotateEnabled) {
    autorotateToggleElement.classList.add('enabled');
  }

2. If you are using Marzipano tool to create/export project.
Uncheck autorotate option in the left settings menu.

To Hide side menu of scenes.

I am hoping you only have one image and no scenes to switch between.
To do that, for easy purpose (without diving into js), you can modify the html as :
image.png

Let me know If you need any help or have any doubts.


On Thu, Nov 9, 2023 at 6:13 PM Florian Luschnig <flolu...@gmail.com> wrote:
Hi! I have built a Marzipano tour for a real estate listing and Idealista (the biggest Portuguese real estate platform) refuses to accept my tour because I have auto rotation activated and also the left side bar with the individual scenes. Could someone please tell me  where and how to modify the script, so that these features are deactivated by default? Thank you in advance!

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/marzipano/aa205ea8-00af-4293-8f8a-aefc1b6e4ff5n%40googlegroups.com.

Florian Luschnig

unread,
Nov 9, 2023, 9:07:52 AM11/9/23
to marzipano
Thank you for your quick answer. I do have several scenes to switch between, so does that mean I cannot disable the side menu of scenes?

Gulshan kumar

unread,
Nov 9, 2023, 11:13:04 AM11/9/23
to marz...@googlegroups.com
You can, but you have to use link hotspots to navigate. Scene menu is for ease of access.

Feel free to use link hotspots to switch between scenes and disable the Scene list element.

Joost

unread,
Nov 9, 2023, 2:28:47 PM11/9/23
to marz...@googlegroups.com
Hi,

Confirm on what Gulshan said.

You can simply disable Auto Rotate after an export. Just open data.js and at the bottom you will see: "autorotateEnabled": true,
Change true to false to disable.

To remove the menu, use "style="display: none;"" to hide the elements you want.

greetings
Joost


Op do 9 nov 2023 om 17:13 schreef Gulshan kumar <kumarjh...@gmail.com>:

Florian Luschnig

unread,
Nov 10, 2023, 6:42:35 AM11/10/23
to marzipano
Thank you for your support. I have placed hotspots in all my scenes, so navigation will be possible after I remove the left side scene list element.

The question remains how I remove the scene list element entirely. Could you send me a screen shot with that part of the script?

Best regards from Portugal,
Florian

Joost

unread,
Nov 10, 2023, 7:03:00 AM11/10/23
to marz...@googlegroups.com
Here's an example of one of my website, see https://opasavontuur.nl/deelI/index.html. And view the source there
image.png

Op vr 10 nov 2023 om 12:42 schreef Florian Luschnig <flolu...@gmail.com>:
Reply all
Reply to author
Forward
0 new messages