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
enlarging hotspots when zooming
-
-
yes that's possible
zoom="true"
Hope it helps
Tuur
-
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 -
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 -
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.:Code
Display More<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 -
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
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!