> but can you give a example how to do it?...

In your page, the downloadUrl() callback calculates the map centre you
would like, as myLatLng.

If you want to use that to centre the map, you must use it inside the
callback function.

So move your map creation lines to WITHIN the callback
 var myOptions = { .... center: myLatLng, ..... };
 map = new google.maps.Map(....

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.

Reply via email to