I've tested this by doing:
$('#map1').jmap('init', function(){
setTimeout(function(){
$('#map1').jmap('SearchDirections', {'fromAddress':'Edinburgh',
'toAddress':'London', 'panel':'#map2'}, function(directions){
var error =
SearchDirectionsErrorHandler(directions.getStatus().code);
alert(error);
});
}, 5000);
});
This is now up on http://map.ifies.org/tests/
In the above, the map initialises then it waits 5 seconds before doing
the search directions. I still get a 500 error regardless.
Don't worry about the other maps, this is just my test page.
On Oct 16, 4:17 pm, "warden [Andrew Leach - Maps API Guru]"
<[EMAIL PROTECTED]> wrote:
> On Oct 16, 1:41 pm, Tane Piper <[EMAIL PROTECTED]>
> wrote:
>
> > Hi there,
>
> > Here is the demo -http://map.ifies.org/tests/
>
> > As you can see, I get the directions, but every time the status code
> > returned from GDirections is a 500 error, anyone any ideas?
>
> I find JQuery code really difficult to follow. And it's not obvious
> what "map1" to "map4" are actually supposed to contain. More
> meaningful names would be a help to your intentions.
>
> Is the error because you attempt a GDirections call on map1 before
> it's properly initialized?
>
> Andrew
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---