Sie sind nicht angemeldet.

1

Freitag, 6. Juni 2014, 11:30

"Bing Maps", "Compas" and "SWFAddress" into the same scene

Hi,

I'd like to use "Bing Maps", "Compas" and "SWFAddress" into the same scene.

Does someone already do that ?

My scene is working fine with "Bing Maps"and "Compas"plugins but If I add the "SWFAddress" plugin this plugin don't work.

I'm using the free version so I known it will work only in local mode.

Thanks for your feedback and help. ;-)

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »kealkeal« (19. Juni 2014, 09:39)


Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

2

Freitag, 6. Juni 2014, 15:50

Hi,

yes, i think most of us have done that.
Can you share some code so we can help?
And discribe what the problem is exactly?

The swfadress plugin has special behaviour and could need some special settings!!

It should be not too difficult.
I', working on a tour now with compass - air compass - airhotspots- map - swfadress
So i'm in to it at the moment ;-)

Tuur *thumbsup*

3

Mittwoch, 18. Juni 2014, 17:00

Hi Tuur,

Thanks for your help.

Here is my code from the XML file :

Zitat

<krpano version="1.17.1" title="" onstart="startup();" tourlink="http://sidarchikov.com" >

<include url="swfaddress.xml"/>

<action name="startup">
<!--delayedcall(0.1, add_scenes_to_swfaddress());-->
if(startscene === null, copy(startscene,scene[0].name));loadscene(get(startscene), null, MERGE);
</action>

<!-- set social plugin -->

<plugin name="email_button"
url="images/email.png"
align="topright"
x="10"
y="10"
altonloaded="if(isphone, mul(x,2); mul(y,2); mul(scale,2));"
onhover="showtext(Share this view via e-mail);"
onclick="share_via_email();"
/>

<plugin name="email_button"
url="images/email.png"
align="topright"
x="10"
y="10"
altonloaded="if(isphone, mul(x,2); mul(y,2); mul(scale,2));"
onhover="showtext(Share this view via e-mail);"
onclick="share_via_email();"
/>

<plugin name="pinterest_button"
url="images/pinterest.png"
align="topright"
x="50"
y="10"
altonloaded="if(isphone, mul(x,2); mul(y,2); mul(scale,2));"
onhover="showtext(Share this view on Pinterest);"
onclick="share_on_pinterest();"
/>

<plugin name="twitter_button"
url="images/twitter.png"
align="topright"
x="90"
y="10"
altonloaded="if(isphone, mul(x,2); mul(y,2); mul(scale,2));"
onhover="showtext(Share this view on Twitter);"
onclick="share_on_twitter();"
/>

<plugin name="googleplus_button"
url="images/googleplus.png"
align="topright"
x="130"
y="10"
altonloaded="if(isphone, mul(x,2); mul(y,2); mul(scale,2));"
onhover="showtext(Share this view on Google+);"
onclick="share_on_googleplus();"
/>

<plugin name="facebook_button"
url="images/facebook.png"
align="topright"
x="170"
y="10"
altonloaded="if(isphone, mul(x,2); mul(y,2); mul(scale,2));"
onhover="showtext(Share this view on Facebook);"
onclick="share_on_facebook();"
/>
The problem is here :

Zitat

<action name="startup">
<!--delayedcall(0.1, add_scenes_to_swfaddress());-->
if(startscene === null, copy(startscene,scene[0].name));loadscene(get(startscene), null, MERGE);
</action>
I need to add " if(startscene === null, copy(startscene,scene[0].name));loadscene(get(startscene), null, MERGE);" into "startup" but I don't know how to add "delayedcall(0.1, add_scenes_to_swfaddress());"

Thanks for your help ! *smile*

4

Freitag, 20. Juni 2014, 10:29

Ok the problem is solve now.

You need to add :

Zitat

keep="true"

Zitat

<plugin name="googleplus_button"
url="images/googleplus.png"
align="topright"
x="130"
y="10"
altonloaded="if(isphone, mul(x,2); mul(y,2); mul(scale,2));"
onhover="showtext(Partager cette vue sur Google+,info-bulle);"
onclick="share_on_googleplus();"
keep="true"
/>
;-)

Ähnliche Themen