Hi,

As of yesterday, I was able to get the map direction in my own
language using

 var request = {
        origin: latlng1,
        destination: latlng2,
        waypoints: waypts,
        language: "TH", //Used to work but not anymore??!?
        unitSystem: google.maps.DirectionsUnitSystem.METRIC,
        travelMode: google.maps.DirectionsTravelMode.DRIVING
    };

However, when I check the page today, it's not working anymore...

[example: http://203.185.132.234/~pipet/bug/waypoint_used_to_work.html]

Upon further inspection, I found that my v3 script is in the format

<script type="text/javascript" src="http://maps.google.com/maps/api/js?
sensor=false"></script>

Changing the script to include language seems to work with or without
[language: "TH",] in the request variable..

<script type="text/javascript" src="http://maps.google.com/maps/api/js?
sensor=false&language=th"></script>

[example: http://203.185.132.234/~pipet/bug/waypoint_current_fix.html]

The points are
1. It used to work before :(.
2. I shouldn't have to set the language in the script import because I
should be able to set it in the request direction in case I want my
app to support multiple languages

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to