Where did you find *getBoundsZoomLevel*() in v2 api documentation? On Tuesday, February 3, 2009 7:46:57 AM UTC-5, qFox wrote: > > You can use the current map to get the minimum zoomlevel at which the > given bounds (your polygon) will be completely visible. You can also > get the bounds of your current viewport and check whether the bounds > of the polygon collide (or are contained) within the bounds. > > Check out: > > map.getBoundsZoomLevel(bounds) > map.getBounds().contains(bounds) > map.getBounds().intersects(bounds) > > > On 3 feb, 07:52, Bill <[email protected]> wrote: > > Hi, > > > > I have a lot of polygons in a database (close to 5000), and I don't > > want to bog down the browser by trying to draw them if they won't be > > visible at the current zoom level. I thought I might not even send > > the info back from the server, saving a bit of bandwidth. > > > > So I'm trying to use my SQL query to compare the current zoom level to > > a minimum zoom level for each polygon. > > > > My question: How do I calculate that minimum visible zoom level for my > > polygons? > > > > I have already stored max_lng, min_lng, max_lat, min_lat for each > > polygon, and I thought I might be able to use those values in this > > calculation. > > > > thanks, > > > > Bill Fisher
-- You received this message because you are subscribed to the Google Groups "Google Maps API V2" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-maps-api/-/jsTG90lco7cJ. 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.
