You are not logged in.

> The forum rules have been updated. Please take a moment to read them.


#1 2013-01-08 14:03:10

Ukrajinec
New member
From: Lvov
Registered: 2012-10-11
Posts: 6

Bing Maps Plugin. How to active the mapspots?

Good day!
I need help. sad
I use the PT 1.8.
I need the one Bing map for all my tours, so I created the tour with Bing map, where are described all my spots, than I cut the code:

Code:

<!--************** Plugin Panotour Maps *******************************************************-->
    <plugin name="panotourmaps" parent="STAGE" keep="true" devices="flash" url="builddata/graphics/PanotourMaps.swf" mapready="false" onmapready="set(mapready, true);" align="left" y="0" height="100%" x="-25%" width="25%" mapgis="openstreetmap">
        <radar visible="true" size="100" linecolor="0xffffff" linealpha="0.494118" fillcolor="0xffffff" fillalpha="0.494118"/>
        <spot name="somenamedspot0" onclick="mainloadpano(build0.xml);" url="builddata/graphics/spots/spot0.png" onhover="showtext(12324);" lat="41.8860549927" lng="12.5067901611" heading="270"/>
        <spot name="somenamedspot1" onclick="mainloadpano(build1.xml);" url="builddata/graphics/spots/spot1.png" onhover="showtext(qwer);" lat="41.8869247437" lng="12.5070466995" heading="270"/>
    </plugin>
    <plugin name="panotourmapsthumb" keep="true" devices="flash" url="builddata/graphics/strap.png" align="left" edge="left" handcursor="true" onclick="if (mapsopened == 'true', closepanotourmaps(), openpanotourmaps() );"/>
    <action name="openpanotourmaps">
        if (isflash,
        set(plugin[panotourmapsthumb].mapsopened,'true');
        tween(plugin[panotourmaps].x,0%);
        tween(area.x,25%);
        tween(area.width,75%);
        if (mapready,
        plugin[panotourmaps].showControls();
        ,);
        ,);
    </action>
    <action name="closepanotourmaps">
        if (isflash,
        set(plugin[panotourmapsthumb].mapsopened,'false');
        tween(plugin[panotourmaps].x,-25%);
        tween(area.x,0%);
        tween(area.width,100%);
        if (mapready,
        plugin[panotourmaps].hideControls();
        ,);
        ,);
    </action>
    <plugin name="panotourmapsthumbicon" devices="flash" keep="true" parent="panotourmapsthumb" zorder="0" url="builddata/graphics/ptmaps_open.png" align="center" edge="center" capture="false" enabled="false"/>
    <action name="panotourmapsactivespot">
        if (isflash,
        if (mapready,
        plugin[panotourmaps].activatespot(%1);
        plugin[panotourmaps].ensurespotvisible(%1);
        ,);
        ,);
    </action>
    <action name="panotourmapsunactivespots">
        if (isflash,
        if (mapready,
        plugin[panotourmaps].activatespot(none);
        ,);
        ,);
    </action>
    <!-- Raise sequence stopper and wait sequence time to break the delayed calls -->
    <action name="interruptAnimation">
        ifnot (stopSequence === undefined,
            set(stopSequence, true);
            wait(0);
        );
    </action>

and pasted to the file which is located at ../map/en-en/Bingmap.xml
    Question:
    Why, if I write in any tour the code as "panotourmapsactivespot(somenamedspot1);", the spot at the map not activated?
    The code
   

Code:

<include url="%BASEDIR%/../../map/en-en/Bingmap.xml">

is present at the main .xml-file.
    P.S.
    Sorry for my bad english, but, I hope, you can understand the my problem... (

Last edited by Ukrajinec (2013-01-08 14:08:28)


Regards, Igor.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson