• i wonder if can tweak this googlemaps plugin addspot action...
    addspot(name, lat, lng ,heading, active, onclick, onhover, onover, onout)

    my problem is i do have 196 point (xml) and i do create action for each xml.. ie

    Code
    <action name="scene01">
    loadpano(./xmlfiles/01_bulatanpersiaranpekeliling.xml, null, KEEPPLUGIN, BLEND(1));
    plugin[maps].pantospot(scene01);
    plugin[maps].activatespot(scene01);
    </action>
    Code
    action(show_maps,true);
    plugin[maps].resetspots();
    plugin[maps].panto(2.930076065333024, 101.77725791931152);
    plugin[maps].addspot(scene48, 2.930076065333024, 101.77725791931152,   68, false,  action(scene48, [b][u][color=#ff0000][size=12]hide_maps[/size][/color][/u][/b]), showtext(Lebuh Ilmu - UKM)    );
    if( plugin[maps].zoom == 13, plugin[maps].setzoom(10) );
    plugin[maps].updatespots();
    </action>

    i dont want to edit all the action for each scene above but i wonder can put addspot onclick command with a more action command..

    addspot(name, lat, lng ,heading, active, onclick, onhover, onover, onout)

    maybe im too lazzy...

    regards

    bulp

  • Hi,

    yes, you can
    just write more more actions there,

    e.g.
    addspot(name, lat, lng ,heading, active, action1(); action2(); action3(), onhover, onover, onout);

    if you need to use a comma (',') there, put the whole code inside quotes,
    e.g.
    addspot(name, lat, lng ,heading, active, 'action1(); action2(); action3()', onhover, onover, onout);

    best regards,
    Klaus

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!