Hola, lo que quiero hacer es cambiar el idioma del mapa en tiempo de
ejecución, con el siguiente codigo puedo hacer que inicialmente cargue
el idioma correpondiente pero las siguientes llamadas no causan ningun
cambio. ¿que hago mal? ¿como lo puedo solucionar?
function inicializarMapa() {
var script = document.createElement("script");
script.src =
"http://www.google.com/jsapi?key=ABCDEFG&callback=loadMaps&hl=" +
Idioma;
script.type = "text/javascript";
script.id = "scriptGoogle";
document.getElementsByTagName("head")[0].appendChild(script);
}
function loadMaps() {
google.load("maps", "2", { "callback": mapsLoaded, language:
Idioma});
}
var map;
function mapsLoaded() {
...
map = new GMap2(document.getElementById("divMapa"));
...
...
}
--
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.