You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

Tuur

Sage

  • "Tuur" started this thread

Posts: 3,339

Location: Netherlands

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

  • Send private message

1

Monday, June 15th 2009, 1:58pm

onload complete

Hi,

i like that it shows directly the pano ... so i think (zephyr told me) that it also loads the googlemaps in the beginning..

how can i make onloadcomplete ... and that it's loading the maps after the pictures?? so it doesn't start with 3-4 seconds blackscreen??

i hope you understand the question..

Thanx

Tuur *thumbsup*
http://www.virtualtuur.com
Skype:studiotuur

2

Monday, June 15th 2009, 3:27pm

Hi,

the googlemaps plugin itself is making also a lot of download requests by it self (for the map tiles),
this could block the other downloads,

to delay the loading the googlemaps plugin you could just let the "url" attribute of the plugin empty (url="")
and set it later (e.g. via delayedcall(..)) to the real url of the maps plugin (make sure the correct path!)
(the loading of plugin will not start until "url" was set to a value)
e.g.

Source code

1
2
3
4
<krpano onstart="delayedcall(4, set(plugin[maps].url, googlemaps.swf) );">
...
<plugin name="maps" url="" ..... />
..


best regards,
Klaus

Tuur

Sage

  • "Tuur" started this thread

Posts: 3,339

Location: Netherlands

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

  • Send private message

3

Monday, June 15th 2009, 3:29pm

thanx..

i'll let you know how that works and if that's the thing.

Thanx
again..;-P

Tuur *thumbsup*
http://www.virtualtuur.com
Skype:studiotuur

Zephyr

Professional

Posts: 1,003

Location: Netherlands

Occupation: Web developer

  • Send private message

4

Monday, June 15th 2009, 3:40pm

Hey Tuur,

Yeah this is what I meant. Sorry I was a bit busy with my own tour xD Instead of a hard 3-4 second delay, you could probally alsoo do a onloadcomplete event. I think this is better because, for example if the user has an old pc and slow internet he has to wait for example 10 seconds, while someone else who has a fast pc/connection only has to wait 1 second (and thus waiting 3 seconds for nothing).

wait till everything is done loading

Source code

1
2
3
<krpano>
<events onloadcomplete="set(plugin[maps].url, googlemaps.swf)" />
<plugin name="maps" url="" ..... />


OR

wait till xml is done loading

Source code

1
2
3
<krpano>
<events onxmlcomplete="set(plugin[maps].url, googlemaps.swf)" />
<plugin name="maps" url="" ..... />


Downside of this is, sometimes the loading seems done, but it's still loading a few tiles/xml etc in the background. So people have to wait a few seconds more before the map shows up.

Tuur

Sage

  • "Tuur" started this thread

Posts: 3,339

Location: Netherlands

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

  • Send private message

5

Monday, June 15th 2009, 3:46pm

Dank je wel!! (thanx)

ga ik straks even checken..eerst boodskappies doen.

(gonna check that later.. first do some growsery (?) shopping)

Tuur *thumbsup*
http://www.virtualtuur.com
Skype:studiotuur

6

Monday, June 15th 2009, 3:55pm

Hi, yes, using "onloadcomplete" is also a good (maybe better ) solution.

Tuur

Sage

  • "Tuur" started this thread

Posts: 3,339

Location: Netherlands

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

  • Send private message

7

Monday, June 15th 2009, 5:27pm

Guys..

i have the same behaviour on a tour without google maps.. *confused*

did'nt check your thing though..

Thanx

Tuur *thumbsup*
http://www.virtualtuur.com
Skype:studiotuur

Tuur

Sage

  • "Tuur" started this thread

Posts: 3,339

Location: Netherlands

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

  • Send private message

8

Tuesday, June 16th 2009, 5:49pm

so,


i did onload complete... but that makes no difference still 3-4 seconds black before preview comes...(???)

and when i interupt the googlemaps doesn't show at all...

any thing else??

Tuur *thumbsup*
http://www.virtualtuur.com
Skype:studiotuur