var map ;
function initialize() {
....
map = new google.maps.Map(document.getElementById("map_canvas"),
....
}
function recentermap() {
map.setCenter(new google.maps.LatLng(-34.397, 150.644));
}
recentermap can then be called from whereever - your real function
will do something more exciting tho!
... if still stuck suggest posting a link to your map, so can give
more specific advice.
> --
> You received this message because you are subscribed to the Google Groups
> "Google Maps JavaScript API v3" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-maps-js-api-v3/-/QB0vJ2g1WwUJ.
> To post to this group, send email to google-map...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-maps-js-a...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-maps-js-api-v3?hl=en.