You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

servaas

Intermediate

  • "servaas" started this thread

Posts: 215

Location: Belgium

  • Send private message

1

Monday, March 23rd 2020, 9:28am

exclude .xml

Hi,

Source code

1
2
3
<include url="xml/interface.xml" />
	<!--  --><include url="xml/map.xml"/> 
	 


What is the easiest to exclude the map when using a mobile device ?

Thanks!
S.

2

Monday, March 23rd 2020, 10:53am

<include url="xml/interface.xml" />
<include url="xml/map.xml" if="!device.mobile" />

https://krpano.com/docu/xml/#xmlspecial
(scroll down a bit)

ps. good renderings! you do them yourself?

Tuur

Sage

Posts: 3,339

Location: Netherlands

Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

3

Monday, March 23rd 2020, 10:55am

Hi,

Add devices="normal" to the include line

Hope it helps!
Tuur *thumbsup*
http://www.virtualtuur.com
Skype:studiotuur

4

Monday, March 23rd 2020, 10:58am

Hi,

Add devices="normal" to the include line


same same but different :)

panoyun

Beginner

Posts: 31

Location: Somalia

  • Send private message

5

Monday, March 23rd 2020, 3:49pm

<include url="xml/interface.xml"if="device.mobile" />
<include url="xml/map.xml" if="!device.mobile" />


<layer name="name" keep="true" devices="normal">
<layer name="name" keep="true" devices="mobile">

<layer name="name" keep.normal="true">
<layer name="name" keep.mobile="true">

So what?

6

Tuesday, March 24th 2020, 8:22am

if="device.mobile" is the same as devices="mobile"

but keep.mobile="true" is not the same !

if keep=false the element will be initialized as well
it will just not be kept, when a new scene is loaded

servaas

Intermediate

  • "servaas" started this thread

Posts: 215

Location: Belgium

  • Send private message

7

Saturday, March 28th 2020, 12:47pm

thank you all !

servaas

Intermediate

  • "servaas" started this thread

Posts: 215

Location: Belgium

  • Send private message

8

Saturday, March 28th 2020, 12:48pm

ps. good renderings! you do them yourself?

Yes :-)