I am struggling to adapt a v2 Google Maps example into v3 and need some help. I have a list of 'end points' within a certain driving distance from a central point, and I want to create a polygon around them. These points are stored in an array (either driveMarkersArray, drivePolyPoints, or markersArray). Although the function process1direction(from, to) correctly populates the array with these points, when passed to draw_DrivePolygon() to draw the polygon, the array seems to be empty. Is this a declaration issue or something related to the asynchronous query for driving directions? The firebug console shows the points at the end of processing. Thoughts?