On Jan 7, 2:48 pm, jameslove <[email protected]> wrote:
> 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?
>
http://groups.google.com/group/Google-Maps-API/browse_frm/thread/23ea6f54cfd476fb/f8b46076e763f043

from this search:
http://groups.google.com/group/Google-Maps-API/search?group=Google-Maps-API&q=getBounds+extend

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