hi,

i'd like to use the gdirection class, I've took a script from the
demos, it's executed correctly on firefox and chrome but in IE, the
maps is not centered and "auto-zoomed" in IE, so what's wrong??

 var map;
    var gdir;
    var geocoder = null;
    var addressMarker;

    function initialize() {
      if (GBrowserIsCompatible()) {
        map = new GMap2(document.getElementById("map_canvas"));
        gdir = new GDirections(map, document.getElementById
("directions"));
        GEvent.addListener(gdir, "load", onGDirectionsLoad);
        GEvent.addListener(gdir, "error", handleErrors);

       setDirections("La roche sur yon","La Roche sur Yon
tournefou","fr");
      }
    }

    function setDirections(fromAddress, toAddress, locale) {
      gdir.load("from: " + fromAddress + " to: " + toAddress,
                { "locale": locale });
    }

function onGDirectionsLoad(){
 }

function itineraire(){
   setDirections(document.getElementById("adresse").value,"La Roche
sur Yon tournefou","fr");
}

initialize();

--~--~---------~--~----~------------~-------~--~----~
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