Could not load Google Maps within 5000ms.

Is Virtual Radar Server not behaving itself? If so then please report it here.
CharlieAlpha
Posts: 63
Joined: Sat Mar 15, 2014 6:41 pm

Re: Could not load Google Maps within 5000ms.

Post by CharlieAlpha » Fri Dec 19, 2014 7:54 pm

Yes, looking at the documentation I thought that should work but I am probably doing something wrong - It's the first time I've tried using the custom content plugin. I have cut it down to a minimum so I have

Code: Select all

<script type="text/javascript">
if(VRS && VRS.globalDispatch && VRS.serverConfig) {
VRS.globalDispatch.hook(VRS.globalEvent.bootstrapCreated, function(bootStrap) {
alert('It Worked');
VRS.globalOptions.scriptManagerTimeout = 5000;
});
}
</script>
I get the "It Worked" alert box then after about 30 secs I get a dialog showing "Could not load Google Maps within 30000ms", so I guess either I am doing something wrong or the scriptManagerTimeout option is applied to the G-Map load.

Any hints?

Thanks
Charlie

agw
Posts: 2241
Joined: Fri Feb 17, 2012 3:20 am

Re: Could not load Google Maps within 5000ms.

Post by agw » Mon Dec 22, 2014 1:36 am

Okey dokey, looking at the code I think scriptManagerTimeout is a general timeout. There's a specialised timeout for Google maps in VRS.globalOptions.mapGoogleMapTimeout, try setting that to 5000 instead.

CharlieAlpha
Posts: 63
Joined: Sat Mar 15, 2014 6:41 pm

Re: Could not load Google Maps within 5000ms.

Post by CharlieAlpha » Tue Dec 23, 2014 1:28 pm

Thanks for that - it worked.
Have a good holiday season and thanks for all the hard work and support over the last year.

Charlie

alezjig
Posts: 11
Joined: Wed Dec 03, 2014 10:29 am
Location: Anadyr

Re: Could not load Google Maps within 5000ms.

Post by alezjig » Wed Jan 07, 2015 11:29 am

Error no longer exists. The interface is loaded a little longer ... but we can wait :geek:
Thank you!
All with the come Christmas and a New Year !!!
Hello, from frozen people!

Post Reply