Automatically hide map on mobile?

Q&A about the latest versions
Post Reply
DavidF
Posts: 10
Joined: Tue Jan 19, 2021 6:54 pm

Hello fellow community!

I'm starting to use pano2vr and created my first tour: https://maju.orchidproductions.de/

The floormap does block most of the frame when viewing it on a mobile phone, iPad is fine. Is there an option to disable the map completely automatically on mobile?

The Skin editor is kind of overwhelming for me, I figured out some things but already fail to add that necessary button for playing background sounds on iOS devices... :roll: so just refering to the skin editor will not bring me very far ;-)

Thank you all very much in advance!

Best gegards!

David
DavidF
Posts: 10
Joined: Tue Jan 19, 2021 6:54 pm

Ok this one was easier than expected.

You just have to add a logic block to the visibility that says "false" for the "mobile" recognition.
Attachments
Bildschirmfoto 2021-01-23 um 21.07.35.png
Bildschirmfoto 2021-01-23 um 21.07.35.png (159.89 KiB) Viewed 1577 times
User avatar
Hopki
Gnome
Posts: 13025
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi David,
If I may, you may want to look at screen width/height rather than if it's a mobile.
Most tablets will have enough screen real estate to display the map but phones won't.

Using the skins preview window you can see the pixel width and height you need to display the map.
Then you can use Player Width and Height logic blocks to hide the map.

As an example,
Player width =< (equals to and less than) 768px, OR
Player height =< (equals to and less than) 768px
visible = false.

In this example, the device's screen has to be over 768px for the map to be seen, adjust the px for your project.
Regards,
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
DavidF
Posts: 10
Joined: Tue Jan 19, 2021 6:54 pm

Dear Hopki,

thank you very much for your suggestions! You're the pano2VR master so you "may" always suggest me something I can learn from ;-)

So there is a difference between iPad's and other tablets? The iPad's browser is acting like one on the Mac if I understand that right, so it will display the map there.

I will work on implementing that into the skin!

Thanks again for your help!

Best regards,

David
User avatar
Hopki
Gnome
Posts: 13025
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi David,
My thoughts are you would only want to hide the floor plan because of smaller screens, so not if it's a mobile or not.
So use player size, width/height to trigger if you see it or not.
Regards,
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
Post Reply