Thanks for the reply.  It looks like you are able to get the bounds of a 
polygon and set the center with your function:
 
 function centerAndZoom(line) {
  if ( centerAndZoomDisabled() ) {
        return;
    }
else
 } 
  bounds = line.getBounds();
  map.setCenter(bounds.getCenter(map), map.getBoundsZoomLevel(bounds));
} 
I have not been successful passing a polygon to the getBounds() function.
 
 

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API V2" 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.

Reply via email to