Wasn't it Jack T. who wrote:
>
>> The first parameter must either be a GMap2 Object or null. It can'tbe
>> an empty Object.
>> gdir = new GDirections( null, document.getElementById("directions"));
>
>Got it!  So the only thing required is the <div> for the result:
>document.getElementById("directions")?

I assumed you wanted that div. If you don't want it, you can make both
parameters null, or even make them void, like this:

        gdir = new GDirections();

But in that case you have to use {getSteps:true} in the load call if you
want any data to be returned. See:

http://code.google.com/apis/maps/documentation/reference.html#GDirections
Options

-- 
http://econym.org.uk/gmap
The Blackpool Community Church Javascript Team


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