Sie sind nicht angemeldet.

virtual pete

Fortgeschrittener

  • »virtual pete« ist der Autor dieses Themas

Beiträge: 245

Wohnort: Nerja

Beruf: Holiday rentals Nerja Costa del Sol

  • Nachricht senden

1

Mittwoch, 12. November 2014, 14:35

Orange Scrolling Thumbnail Plugin

Hi have installed thr plguin and all works as expected.

I want to only show the thumbnails only on some Panos - how do i do this. At the moment it shows all the time and on all Panos.

Any help appreciated.

2

Mittwoch, 12. November 2014, 20:30

There are many ways on how to do that. I propose one here:
- Introduce new attribute on your scene definition
- Create event when new pano is loaded to check this attribute on active scene and based on that turn on/off plugin visility.

Code:
Example of scene definition with new custom attribute:

Quellcode

1
2
<scene name="scene_01" title="Show any plugin" onstart="" thumburl="panos/01.tiles/thumb.jpg" lat="" lng="" heading="" show_any_plugin="true">
<scene name="scene_02" title="Hide any plugin" onstart="" thumburl="panos/02.tiles/thumb.jpg" lat="" lng="" heading="" show_any_plugin="false">


Any layer and event code:

Quellcode

1
2
<events name="any_plugin_visibility" keep="true" onnewpano="if(scene[get(xml.scene)].show_any_plugin,set(layer[any_plugin].visible,true);,set(layer[any_plugin].visible,false); )" />
<layer name="any_plugin" keep="true" url="skin/anyplugin.png" align="center"  x="0"   y="0" visible="true" />


Online example: http://webonjee.com/radna-mapa/anton/__k…lity/index.html

Code: here

regards
Umalo

virtual pete

Fortgeschrittener

  • »virtual pete« ist der Autor dieses Themas

Beiträge: 245

Wohnort: Nerja

Beruf: Holiday rentals Nerja Costa del Sol

  • Nachricht senden

3

Montag, 1. Dezember 2014, 12:25

Adjusting width of thumbnail view - SOLVED

Hi, I am trying to adjust the size of the view of thumbnails. Not the thumnails themselves but I want to show it across the screen. Any help appreciated.

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »virtual pete« (1. Dezember 2014, 13:59) aus folgendem Grund: SOLVED set(thumbnails[thumbs3].size, 750);<!-- set thumbsbar "thumbs3" width --> thumbnails_build(thumbs3);<!-- build thumbsbar with name "thumbs3" -->


4

Montag, 1. Dezember 2014, 16:59

Isn't there better option to make width based on screen size e.g width="90%" Than size will adapt to 80% of any screen size!!!

virtual pete

Fortgeschrittener

  • »virtual pete« ist der Autor dieses Themas

Beiträge: 245

Wohnort: Nerja

Beruf: Holiday rentals Nerja Costa del Sol

  • Nachricht senden

5

Montag, 1. Dezember 2014, 18:17

Thanks Umalo, I will give that option a try :)

Ähnliche Themen