Automatically hide map on mobile?

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

Fri Jan 22, 2021 12:33 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: 9
Joined: Tue Jan 19, 2021 6:54 pm

Sat Jan 23, 2021 9:23 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 205 times
User avatar
Hopki
Gnome
Posts: 11289
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Sun Jan 24, 2021 3:09 pm

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,
Hopki
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: 9
Joined: Tue Jan 19, 2021 6:54 pm

Sun Jan 24, 2021 6:39 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: 11289
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Sun Jan 24, 2021 7:16 pm

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,
Hopki
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