Happy New Year All,

I searched but could not find an answer to how one bounds several
encoded polygons. I can get one bounded but  not a number of them.

I would have thought that this method would have worked:

var bounds = new GLatLngBounds(); // define the boundaries

poly1 = {create encoded polygon here}
bounds.extend(poly1);
map.addOverlay(poly1);

poly2 = {create encoded polygon here}
bounds.extend(poly2);
map.addOverlay(poly2);

 map.setCenter(bounds.getCenter());
 map.setZoom(map.getBoundsZoomLevel(bounds));

It's been an hour of searching and I can't seem to find an answer or
example using multiple polygons with bounding. Could someone point me
in the right direction?

Thanks,
James Love
University of British Columbia - Okanagan


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