As the latlng variable is global it will be updated when the callback function is called. If you want to re-center the map when the callback is triggered just put a map.setCenter(latlng) in your callback function (your map is global so it will work).
You could also trigger a map event in the callback function if you want to put your code elsewhere. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
