You are not logged in.

1

Tuesday, November 4th 2014, 11:45am

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

Umalo

Professional

Posts: 1,051

Location: Osijek, Croatia, EU

  • Send private message

2

Tuesday, November 4th 2014, 4:45pm

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:

Quoted

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

3

Wednesday, November 5th 2014, 5:09pm

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