On Jan 7, 10:48 pm, jameslove <[email protected]> wrote:
> 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);

If you have a look at the documentation, you'll find that .extend
takes a single GLatLng as its argument, not an entire polygon.

So you need to add enough single points to your GLatLngBounds to
include the new polygon. I suggest looking at GPolygon.getBounds
().getSouthWest() and .getNorthEast()

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