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 &amp;hl=de in the script url for the API

<script src="http://maps.google.com/maps?
file=api&amp;hl=de&amp;v=2&amp;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&amp;v=2&amp;hl='+lang+'&amp;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
-~----------~----~----~----~------~----~------~--~---

Reply via email to