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.

1

Thursday, February 6th 2014, 10:38am

Using `simulatedevice` on `embedpano()`

Hi there,

The `simulatedevice` parameter doesn't seem to work when it is passed to `embedpano()`, only with `createPanoViewer()`. Would it be possible to have `embedpano()` also support this parameter?

Thanks,
Manuel
PanoTag: Facebook tagging for krpano

KRPano development and more: http://www.digisfera.pt/en/development

2

Monday, February 10th 2014, 9:36am

Hi,

sorry, but there must be some other mistake here.

The embedpano() and the createPanoViewer() function are basically the same, the embedpano() is only a 'shortcut' version.

It is defined like this (can be seen also in the embedpano.js at the end of the file):

Source code

1
2
3
4
function embedpano(obj)
{ 
  createPanoViewer(obj).embed();
}


Best regards,
Klaus

3

Thursday, February 27th 2014, 2:20pm

I see! One needs to use "vars.simulatedevice" rather than "simulatedevice" directly. Thanks!
PanoTag: Facebook tagging for krpano

KRPano development and more: http://www.digisfera.pt/en/development

Posts: 1,850

Occupation: Virtual Tours - Photography - Krpano developer

  • Send private message

4

Friday, February 28th 2014, 12:55am

simulatedevice doesn't seem to work unless you also set the useragent.
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour