On Sep 3, 7:50 am, actino <[email protected]> wrote: > Hi all > I like to change the language of GMapTypeControl. > > I have for each language (de/fr/en) a .js-code where I like define > the language of the GMapTypeControl.
Include &hl=de in the script url for the API <script src="http://maps.google.com/maps? file=api&hl=de&v=2&key=ABQIAA... You should simply be able to use document.write to write the script tag: <script type="text/javascript"> var lang="de"; // or whatever document.write( '<script src="http://maps.google.com/maps? file=api&v=2&hl='+lang+'&key=AAAA...<\/script>' ); </script> The "document.write" statement should all be on one line. Andrew --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
