I'm also working on a site that used to do this in API v2. I just spent a whole day trying workarounds for this, found that it's possible to do this AJAX-style, but it's a real pain in the butt to integrate. I could get the map to load in Japanese, but the directions part wouldn't work. There was no happy medium.
I'm throwing myself at the mercy of the Google devs, please add in this feature so it doesn't require a page refresh to alter the script's query string! Or if someone out there knows how to make a DirectionsResult print out in a different language... maybe using Google Translate somehow? I guess that's my next workaround attempt... On Jun 3, 11:14 am, alee <[email protected]> wrote: > In Google Maps V2, I could indicate a language, as a GDirection.load > option, to render the directions i.e: > new GDirections(map, directionsEl).load("from: " + sUserZip + " > to: " + "("+sEventLat+","+sEventLng+")", {locale:"fr"}); > > While V3 does provide localization to different languages for map and > directions, it is facilitated by loading the Map API for a language > (i.e., primary language). > > I have a case where I would simply like to translate directions to > secondary language (e.g., French) and render it. > > Do I have to switch and reload the Maps API for the secondary > language? > > Thanks, in advance > Alison -- 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.
