Sie sind nicht angemeldet.

1

Donnerstag, 31. Mai 2012, 22:41

enlarging hotspots when zooming

A client has asked me if it is possible to make hotspots 'grow' in size when someone zooms in, in otherwords the buttons (hotspots) must scale along with the zoom.
thanks in advance.
Best regards
Tim

Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

2

Donnerstag, 31. Mai 2012, 22:56

yes that's possible

zoom="true"

Hope it helps

Tuur *thumbsup*

3

Donnerstag, 31. Mai 2012, 23:12

enlarging hotspots (and plugins) when zooming

Thanks Tuur,
Just tried it and works fine on my hotspot arrows, the issue I now have is with my plugins, ie buttons for zoom in/out, rotate, fullscreen etc
as they are plugins I cannot use zoom=true (I tried). Is there a way to turn these plugins into hotspots? so I can then use zoom="true"
the only difference for me is that the plugins are defined relative to the screen, ie dont move with when the pano moves, whereas the hotspots are defined relative to the pano.
cheers
Tim

4

Freitag, 8. Juni 2012, 09:04

enlarging plugins when zooming

Still have the issue with plugins, ie buttons for zoom in/out, rotate, fullscreen etc is there any way to make the get larger when zooming, similar to how you can do with hotspots?


ideas appreciated!
Tim

5

Donnerstag, 14. Juni 2012, 10:21

Hi,

you want the buttons (the user interface) to zoom when zooming in the pano?
that doesn't make sense, or?

but anyway - if you want - it would be possible of course:

the fov can be recalculated to a scaling factor and then this scaling factor be applied to the buttons that should zoom,
e.g.:

Quellcode

1
2
3
4
5
6
7
8
9
10
11
<events onviewchanged="zoombuttons();" />

<action name="zoombuttons">
  div(tmp, view.fov, 360);
  mul(tmp, 3.14159);
  Math.tan(tmp);
  div(scale, 1, tmp);
  copy(plugin[button1].scale, scale);
  copy(plugin[button2].scale, scale);
   ...
</action>


best regards,
Klaus

6

Samstag, 30. Juni 2012, 17:32

enlarging hotspots when zooming

Thanks Klaus



I will try this out.



I agree a bit of a weird requirement. Its to do with accessibility standards, Apple gets around it nicely as you can do 'three finger' zoom which enlarges the viewing area and everything gets scaled.



Cheers

Tim