Sie sind nicht angemeldet.

Tuur

Erleuchteter

  • »Tuur« ist der Autor dieses Themas

Beiträge: 3 839

Wohnort: Netherlands

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

  • Nachricht senden

1

Montag, 15. Juni 2009, 13:58

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*

2

Montag, 15. Juni 2009, 15:27

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.

Quellcode

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


best regards,
Klaus

Tuur

Erleuchteter

  • »Tuur« ist der Autor dieses Themas

Beiträge: 3 839

Wohnort: Netherlands

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

  • Nachricht senden

3

Montag, 15. Juni 2009, 15:29

thanx..

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

Thanx
again..;-P

Tuur *thumbsup*

Zephyr

Profi

Beiträge: 1 003

Wohnort: Netherlands

Beruf: Web developer

  • Nachricht senden

4

Montag, 15. Juni 2009, 15:40

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

Quellcode

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


OR

wait till xml is done loading

Quellcode

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

Erleuchteter

  • »Tuur« ist der Autor dieses Themas

Beiträge: 3 839

Wohnort: Netherlands

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

  • Nachricht senden

5

Montag, 15. Juni 2009, 15:46

Dank je wel!! (thanx)

ga ik straks even checken..eerst boodskappies doen.

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

Tuur *thumbsup*

6

Montag, 15. Juni 2009, 15:55

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

Tuur

Erleuchteter

  • »Tuur« ist der Autor dieses Themas

Beiträge: 3 839

Wohnort: Netherlands

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

  • Nachricht senden

7

Montag, 15. Juni 2009, 17:27

Guys..

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

did'nt check your thing though..

Thanx

Tuur *thumbsup*

Tuur

Erleuchteter

  • »Tuur« ist der Autor dieses Themas

Beiträge: 3 839

Wohnort: Netherlands

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

  • Nachricht senden

8

Dienstag, 16. Juni 2009, 17:49

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*