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?

    Einmal editiert, zuletzt von surami (17. April 2013 um 18:03)

  • Spots are defined in Bing map plugin definition:

    Code
    <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:

    Code
    <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:

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

    Hiding is clear:

    Code
    <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:

    Code
    <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:

    Code
    <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 *wink*

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

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!