My map loads some what more that 100 polygons. Polygon loads fine, but
I have some problems in setting the Correct Zoom and Center.
Method that I use for calculating the zoom and center.

Begin: Loop of Polygon --
       map.addOverlay(polygon);
       if ( polygon ){
            bounds.extend(polygon.getBounds().getSouthWest());
            bounds.extend(polygon.getBounds().getNorthEast());
        }
Loop Ends:
map.setCenter( bounds.getCenter(), map.getBoundsZoomLevel( bounds ) );


Is this correct? But I am getting the incorrect values.
Can any one help me on this.

-- 
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.

Reply via email to