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

Friday, July 18th 2014, 11:43am

Inserting a new panorama tour by pressing a button

I am using Krpano from just a few hours.
I used as a starting point a virtual tour similar to: http://krpano.com/tours/corfu/

I managed to add new buttons in the bar, that when tapped call JS functions included in the tour.html file, by using js(code...);
Now, I would like to insert new panorama tour, by pressing a button that call JS code that know the path of the image to be used as input.

So for example, if I have image (one tour) and I tap that button, I will end up having two images and two tours, without losing the first one (and I can navigate through them by using the preview button).

Is this possible?

Thanks.

2

Monday, July 21st 2014, 11:48pm

Any suggestions please?

3

Tuesday, July 22nd 2014, 8:02am

Hi,

sorry, I don't understand what you mean, but you can either simply loading new webpages via the openurl() action:
http://krpano.com/docu/actions/#openurl

or use the loadpano() action to load a new pano/tour xml file:
http://krpano.com/docu/actions/#loadpano

or the loadscene() action to load a new <scene> from the current xml:
http://krpano.com/docu/actions/#loadscene

Best regards,
Klaus

4

Wednesday, July 23rd 2014, 10:48am


Hi,

sorry, I don't understand what you mean, but you can either simply loading new webpages via the openurl() action:
http://krpano.com/docu/actions/#openurl

or use the loadpano() action to load a new pano/tour xml file:
http://krpano.com/docu/actions/#loadpano

or the loadscene() action to load a new from the current xml:
http://krpano.com/docu/actions/#loadscene

Best regards,
Klaus
Thank you very much for your answer.

What I meant, is to create a pano rather than loading it, which would require to have one already processed with its tiles.

In other words, when clicking the button, I'd like to pass a panorama JPEG image to the script by using only javascript, creating therefore a new pano, loading it in the display and preserving the previous one in the "previews" menu.

Is this possible?

Thank you again.

5

Wednesday, July 23rd 2014, 12:05pm

After some research in Internet, it looks like it is possible to do it only by using the executable krpanotools (correct me please if I'm wrong).
The problem is that the platform I am using has an ARM processor, which apparently it is not supported (again, please correct me, if I am wrong).

Are there any solutions?

Thank you,

6

Thursday, July 24th 2014, 10:59am

Sorry, I still don't understand what you are trying to do, but there is no ARM version of the krpano tools.

Best regards,
Klaus

7

Monday, August 4th 2014, 11:29am

Sorry, I still don't understand what you are trying to do, but there is no ARM version of the krpano tools.

Best regards,
Klaus

I would like a button on which the user clicks on it and a new image appears, keeping the same settings, same xml and same JS and storing the current panorama picture. In other terms, i would like just to change only the tiles and reload the page. I was asking if this is achievable.

Thank you.

This post has been edited 1 times, last edit by "daytan" (Aug 4th 2014, 12:11pm)


8

Wednesday, August 6th 2014, 7:20am

Hi,

no, that's not possible.

Best regards,
Klaus