On Apr 20, 5:15 pm, Brian P <[email protected]> wrote:
> Will that work? I thought that polygon.getBounds() would just give the
> rectangular bounds of a polygon, such that you could zoom to a size
> that contains the whole thing. Is that wrong?

No, that's correct. But you never said that the polygon should be
irregular.
If it is indeed irregular, then Mike's EPoly should do the trick using
the same principle.


--
Marcelo - http://maps.forum.nu
--


> I am using
> GPolygon.Contains() from Mike Williams (http://www.econym.org.uk/gmap/
> inside.htm) but now I see something about v2.88 making it redundant on
> his page.
>
> If polygon.getBounds().containsLanLng(GLatLng) will work for complex
> polygons with holes in them, I probably should re-write. I guess I'll
> experiment with it and see if it works.
>
> -Brian
--~--~---------~--~----~------------~-------~--~----~
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