You could try using Function Closure on your geocoder calls

function performGeocode(k) {
    geocoder.getLatLng(test[k].original, function(point) {
        if(!point) { test[k].decode = false; } else {
            test[k].decode = point;
        }
    }
}

for (key in test) {
  performGeocode(key)
}

Hint: remember to watch out for the geocoder speed limit if you have
more than two keys in your object.

-- 
Mike Williams
http://econym.org.uk/gmap



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to google-maps-api@googlegroups.com
To unsubscribe from this group, send email to 
google-maps-api+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-maps-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to