Sie sind nicht angemeldet.

1

Freitag, 12. April 2013, 21:54

Onover show linkedscene's title as hotspot tooltip

Hi!

Is it possible somehow at onover to get the linkedscene's title and show on a hotspot as tooltip? I know, that this tooltip (flash+html5) thing is very new now.

Somebody could help me out, that in which direction should I go?

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »surami« (17. April 2013, 18:03)


2

Montag, 15. April 2013, 13:06

are you heading in direction to achieve something like this:

3

Mittwoch, 17. April 2013, 18:03

Yes, something like that...

4

Mittwoch, 17. April 2013, 18:26

Spots are defined in Bing map plugin definition:

Quellcode

1
<spot name="mapspot_osijek360_0020" lat="45.562796731136196"  lng="18.697255253791823"  heading="170" onhover="new_showtext(0020);"  onover="showTooltip(tooltip_0020.jpg)"  onout="hideTooltip()" onclick="hideTooltip();update_map_spot(mapspot_osijek360_0020);load_map_pano(0020, 1);"/>


Plugin "tooltip_new" is defined with no image at start:

Quellcode

1
<plugin name="tooltip_new"  url=""  align="lefttop"  enabled="false"  keep="true"  handcursor="false"  children="false"  visible="false"  width="210"  height="141"  zorder="1001"  effect="glow(0xffffff,1,6,100000);dropshadow(2,135,0x666666,1,1);"/>


Action that is called on over is setting appropriate image and turned on visibility:

Quellcode

1
<action name="showTooltip">  set(plugin[tooltip_new].url,%SWFPATH%/tooltips/%1); <!-- stotage of tooltips -->  set(plugin[tooltip_new].visible, true);</action>


Hiding is clear:

Quellcode

1
2
3
<action name="hideTooltip">
set(plugin[tooltip_new].visible, false);
</action>


Action that is called on hover to adjust the position of the tooltip and text:

Quellcode

1
2
3
<action name="new_showtext">set(text_to_display,get(naslov[hotspot].sub[%1].text));    showtext(get(text_to_display),DEFAULT);
  set(new_position_tootipa_x,get(mouse.stagex));  set(new_position_tootipa_y,get(mouse.stagey));  sub(new_position_tootipa_x,90);  sub(new_position_tootipa_y,170);
  set(plugin[tooltip_new].x,get(new_position_tootipa_x));  set(plugin[tooltip_new].y,get(new_position_tootipa_y));</action>


Array is defined by:

Quellcode

1
<naslov name="hotspot"><sub name="0001" text="some text1" />  <sub name="0002" text="some text2" />  <sub name="0003" text="some text3" />    </naslov>


Keep in mind that numbered names are not supported from Krpano v16 according to Klaus notes. So adapt the names to start with letter. E.g. text0001...

How this looks live you can see here:
http://www.osijek360.com/ -> version not available on English yet and not IOS ready yet. Planed for phase 2 ;-)

That would be shortly. Hope this can give you direction.
Umalo