I am trying to display driving directions by call
GDirection.loadFromWaypoints(points).
Currently my system language is EN. when I try to load direction for 2
points in places with English language, it runs well. But when I try
some points in places with other language that will not be known by my
OS, for example , I choose 2 points in Tokyo,Japan, It failed to load
directions!
But if I try the same points on official site of google map(http://
maps.google.com) , the direction will be displayed , althought it
contains any unknown words.

The sample code is like this:

var myMap = new GMap2(document.getElementById("myMapDiv"));
myMap .addControl(new GLargeMapControl());
myMap .addControl(new GScaleControl());
myMap .setCenter(new GLatLng(1.2929724816592618 , 103.77503156661987),
15);

var myDirection= new GDirections(myMap , document.getElementById
("myDirectionDiv"));
GEvent.addListener(myDirection, "load", directionLoad);
GEvent.addListener(myDirection, "error", directionError);

function directionLoad(){.........}

function directionError(){ ........}



Need I do some setting for it? or try some other way?
Expect some suggestion about it.
Thanks


Best Regards,

Sam


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to