A GetRoute method question

Hi people,
my question is: is it possible to pass to the callback function of the getroute method other parameters apart from the routepoints themself? The situation is that i have a callback function where I process the route points, and sometimes i made a recursive call to getRoute method using the same function as callback; i would like to pass to that recursive function the value of a local variable along with the getRoute points. Is it possible somehow?

If it isn't too clear i will post some code this afternoon.

thanks very much for ur time!

Dario -Argentina

[587 byte] By [DarioAznar] at [2008-1-3]
# 1
I would also like to know if it is possible to do this.

Or store the result in an object that can be passed;

var x = map.GetRoute(blah);

slajax at 2007-9-25 > top of Msdn Tech,Windows Live Developer Forums,Virtual Earth: Map Control Development...
# 2
You will still end up calling the map.GetRoute() method, which only accepts one parameter (the route class) and if multiple parameters are passed (which you can do in javascript), the function inside the API will just ignore the rest of the parameters. The only way to get around this is to override the GetRoute() class to actually return any other parameters that are passed to it.

Hope that helps,

DerekChan at 2007-9-25 > top of Msdn Tech,Windows Live Developer Forums,Virtual Earth: Map Control Development...

Windows Live Developer Forums

Site Classified