Posts by michel.castelli

    The new combobox is awesome, but in new build, despite using "tooltips_mapspots="true" in skin settings, the mapspot tooltips are not showing on mouseover for Google Maps.
    Also worth mentioning is that I get an error message when opening the new Tour Editor that says "plugins/scrollarea.js failed to load (0)" even though the scrollarea.js is in the plugins folder. Once hotspots are added to the panos using the editor, they show a tooltip on mouseover, but mapspots do not.

    I really need tooltips for the mapspots in this project and would be gratefui to learn of a solution or workaround for this.

    Regards, Reggie

    Hi,

    I experienced the same issue on the krpano 1.19.pr13.

    As far as I looked, the problem seems to come from the content of the skin_addmapspots() which rely in on the htospot style.

    the function get(style[hotspotstyle].onover return null as the onout does.


    to fix it you can override as followed (if you need it urgently):

    Code
    <action name="skin_addmapspots">    for(set(i,0), i LT scene.count, inc(i),      if(scene[get(i)].lat,        txtadd(spotname, 'spot', get(i));        txtadd(spotclickevent, 'skin_hidetooltips(); activatespot(',get(spotname),'); skin_loadscene(', get(scene[get(i)].name), ',get(skin_settings.loadscene_blend)); skin_updatescroll(); delayedcall(0.5,skin_showmap(false));');        copy(scene[get(i)].mapspotname, spotname);        addspot(get(spotname), get(scene[get(i)].lat), get(scene[get(i)].lng), get(scene[get(i)].heading), false, get(spotclickevent), null);        if(skin_settings.tooltips_mapspots,          set(layer[skin_map].spot[get(spotname)].tooltip, get(scene[get(i)].title) );          txtadd(layer[skin_map].spot[get(spotname)].onover, 'set(hovering,true);',  'copy(layer[skin_tooltip].html, tooltip); set(layer[skin_tooltip].visible, true); tween(layer[skin_tooltip].alpha, 1.0, 0.1); asyncloop(hovering, copy(layer[skin_tooltip].x,mouse.stagex); copy(layer[skin_tooltip].y,mouse.stagey); );' );          txtadd(layer[skin_map].spot[get(spotname)].onout,  'set(hovering,false);', 'tween(layer[skin_tooltip].alpha, 0.0, 0.1, default, set(layer[skin_tooltip].visible,false), copy(layer[skin_tooltip].x,mouse.stagex); copy(layer[skin_tooltip].y,mouse.stagey); );' );        );      );    );
        if(xml.scene != null,      activatespot( get(scene[get(xml.scene)].mapspotname) );    ,      activatespot(spot0);    );
        <!-- zoom and pan the map to see all spots at the same time -->    zoomToSpotsExtent();  </action>


    You can add this function in a xml and include it in your tour.

    Best regards,

    Michel