title: javascript array values not available outside function
body: <p>
  I'm sorry to ask this but I've looked everywhere, and cant follow this.<br>
  I'm trying to re-work a v2 google maps example to make it go in v3.
  I have a set of 'end points' within a driving distance of a central point I want to draw a polygon around.
  Tese are written to an array (there are three in the code that should work: driveMarkersArray - the current one, or drivePolyPoints or markersArray)
  Within the function process1direction(from,to) that does this they are certainly there, (although interestingly the firebug console reports them at the end, after all the processing is done?)
  BUT when then processed in a different function draw_DrivePolygon() to draw the polygon, array appears empty.
  Is this just declarations (I've checked a a lot) or something to do with the asynchronous query to find the driving directions?</p>
  
  <p></p>