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.

Vishwas

Beginner

  • "Vishwas" started this thread

Posts: 33

Location: India

  • Send private message

1

Monday, June 20th 2016, 6:37am

mobile view scaling issue

Hello people,

I am using krpano-1.19-pr4-win and was trying out some of the features.

A rough draft is here, it is just a tryout so not pretty *g*

http://epsonaut.com/wp-content/uploads/2016/test/tour.html

while this looks OK on desktop, I am not able to handle the scaling required for mobile view. Especially the floorplan & the combobox look very huge and cover the entire view. I have seen some amazing tours created in which these elements automatically resize as per the screen but I just don't know how to do this, any help, code snippet or reference would be appreciated. Please let me know if you need any more information. Thanks in advance!

Vishwas

Beginner

  • "Vishwas" started this thread

Posts: 33

Location: India

  • Send private message

2

Tuesday, June 21st 2016, 7:26am

Any suggestions or hints ppl?

3

Wednesday, June 22nd 2016, 9:58pm

Hi,

see here:
http://krpano.com/docu/xml/#devices

and here:
http://krpano.com/docu/xml/#devicechecksforattributes

by this you could set special values for some devices - e.g. a smaller scale for mobile:

Source code

1
2
scale.normal="1.0"
scale.mobile="0.5"


'normal' will cover desktop and tablets and 'mobile' will be for mobile devices.

Alternatively you could also set a different global scale for mobile devices - e.g. via the mobilescale setting in the html file:
http://krpano.com/docu/html/#mobilescale

Best regards,
Klaus