>
> I think I'd start by rearranging to 
>    function setDirections(locale, fromAddress, toAddress1, 
> toAddress2, .... 
> so that you can now define as many addresses as you like without it 
> affecting 'locale' 
> You'd need to change every place that you call your new function, so 
> that the parameters are given in the new order. 
>
>
Well, here I'm again. I tried your response, and I did that:

setDirections("es", "Badalona", "Barcelona", "");
}
}

function setDirections(locale, fromAddress, toAddress1, toAddress2, ) {
gdir.load({ "locale": locale }, "from: " + fromAddress + " to: " + 
toAddress1 + " to: " + toAddress2);
}


Well, with that order the GMap doesn't give me an error, but the map is 
blank. I did it correctly? 

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API V2" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-maps-api/-/j-N7gD5HVSgJ.
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.

Reply via email to