active state on startup scene

  • Hi All,

    In my vtour I placed a startup scene (in tour.xml).
    Only now the problem is that the google maps plugin does not show the active state on this particuler scene bullet.

    It looks like this:

    <action name="startup">
    if(startscene === null, copy(startscene,scene[scene_360_graden_Buurtweg_17-21].name));
    plugin[maps].activatespot(scene_360_graden_Buurtweg_17-21);
    loadscene(get(startscene), null, MERGE);
    </action>

    Anyone?

    Thanks in advance

    Joris

  • If skin_addmapspots is used than your mapspots are not of the same name as your scenes are. Names are stored in new created attribute: mapspotname so they should be read from this scene attribute:

    Zitat

    layer[skin_map].activatespot(get(scene[get(xml.scene)].mapspotname));

  • That didn't work, but in the tour.xml at the plug-code I saw this:

    <spot name="scene_360_graden_Buurtweg_17-21" lat="52.119043" lng="4.358438"
    onhover="showtext(Spot 21);"
    onclick="action(scene_360_graden_Buurtweg_17-21);"
    heading="180"
    active="true"
    />

    I added
    active="true"

    and it did the trick :)

Jetzt mitmachen!

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