Customising Viewer

CSS styling, controls, custom look and feel, custom packaging and deployment.
WebSupport
Posts: 1074
Joined: Thu Aug 23, 2012 11:35 am
Location: Pasadena, CA
Contact:

Re: Customising Viewer

Postby WebSupport » Sun Jul 30, 2017 10:44 pm

Yes, reloadRowIndex was introduced in the final 3.6 build released on Feb 2017. I believe you are using the viewer from one of the beta or RC releases. Do you have access to the scripts from the final 3.6 release?

http://www.webrotate360.com/products/we ... story.aspx

cd_design
Posts: 12
Joined: Wed Mar 16, 2016 7:58 am
Contact:

Re: Customising Viewer

Postby cd_design » Mon Jul 31, 2017 5:36 am

Hi,

I have updated all the pages to use the latest javascript that is created when you preview/export from spoteditior.

WebSupport
Posts: 1074
Joined: Thu Aug 23, 2012 11:35 am
Location: Pasadena, CA
Contact:

Re: Customising Viewer

Postby WebSupport » Mon Jul 31, 2017 4:01 pm

Great! Did it start working after that? If not, please share a link to the page with the reload call.

cd_design
Posts: 12
Joined: Wed Mar 16, 2016 7:58 am
Contact:

Re: Customising Viewer

Postby cd_design » Tue Aug 01, 2017 12:16 am

Hi,

Here is a page with the reload call, [link-removed].

The part that is working, is the change of config xml, but it doesn't keep the same frame/position when switching between xml's, after you have rotated it away from the initial position.

Cheers

WebSupport
Posts: 1074
Joined: Thu Aug 23, 2012 11:35 am
Location: Pasadena, CA
Contact:

Re: Customising Viewer

Postby WebSupport » Tue Aug 01, 2017 6:58 am

You would need to follow this example such that you can capture the api object in apiReadyCallback and then use it to call reload on click events from the product thumbnails, e.g:

Code: Select all

   jQuery('#view1').click(function(e) {
      e.preventDefault();
      if (apiObj) {
         apiObj.reload('360_assets/view1/view1.xml');
      }
   });


Then you can pass the missing parameters to the reload call above, e.g:

Code: Select all

apiObj.reload('360_assets/view1/view1.xml', null, null, apiObj.images.getCurrentImageIndex(), apiObj.images.getCurrentRowIndex());


I hope it works! Just let us know if not..

cd_design
Posts: 12
Joined: Wed Mar 16, 2016 7:58 am
Contact:

Re: Customising Viewer

Postby cd_design » Wed Aug 02, 2017 3:40 am

Totally lost with this to be honest, I don't really know much about Api coding...

WebSupport
Posts: 1074
Joined: Thu Aug 23, 2012 11:35 am
Location: Pasadena, CA
Contact:

Re: Customising Viewer

Postby WebSupport » Sun Aug 06, 2017 11:11 pm

You can send us the standalone package for the entire reload example you shared before (i.e html plus the image folders, etc) and we can update it for you on our end. What do you think?

cd_design
Posts: 12
Joined: Wed Mar 16, 2016 7:58 am
Contact:

Re: Customising Viewer

Postby cd_design » Tue Aug 08, 2017 7:43 am

That would be great, thanks. I've sent you a PM with link to the zip file.

cd_design
Posts: 12
Joined: Wed Mar 16, 2016 7:58 am
Contact:

Re: Customising Viewer

Postby cd_design » Tue Aug 15, 2017 12:43 am

Hi, any updates?

I've just noticed your location. We have some of our products installed near you, outside Union Station, if your ever down that way!

Image

Its not the sign itself, its the part that holds it in the ground...one of only a few installations in the USA.

WebSupport
Posts: 1074
Joined: Thu Aug 23, 2012 11:35 am
Location: Pasadena, CA
Contact:

Re: Customising Viewer

Postby WebSupport » Tue Aug 15, 2017 9:40 pm

Interesting! We will check it out.. :)

Please give us an extra day or two to prepare the example.


Return to “Viewer Development and Customizations”

cron