You basically need to calculate the relevant area yourself right now-- it would involve drawing a polygon around the corners of the camera's viewport and mapping them to world coordinates, or given that you have no roll, calculating a simpler shape. We'll look into exposing a function that makes that easier in the next release.
- pamela On Mon, Jan 11, 2010 at 9:19 AM, BenP <[email protected]> wrote: > Ahh, yes I am using a 3D map, I should have mentioned that. > Does this mean I need to calculate the boundries myself, using the > getCenter and then the camera pitch, zoom and rotation (luckily I have > no roll), or is there a way to interogate which tiles have been drawn? > > thanks Ben > > On Jan 11, 2:28 am, "pamela (Google Employee)" <[email protected]> > wrote: >> Hi Ben - >> >> Are you using Map3D or Map? If using Map3D, I believe that >> getLatLngBounds() currently returns null, as the bounds are harder to >> calculate. >> >> - pamela >> >> On Thu, Jan 7, 2010 at 10:05 PM, BenP <[email protected]> wrote: >> >> > Obviously there is a gap in my knowledge (in fact it riddled with >> > them), I kepe encountering the same error, when i try to get the view >> > boundries with: >> >> > var viewBounds:LatLngBounds = map.getLatLngBounds(); >> >> > it always returns NULL >> >> > I also tried >> > map.getCenter().lat() >> >> > which works fine, but replacing it with >> > map.getLatLngBounds().getNorthWest().lat() >> >> > gives me NULL again >> >> > can someone shed some light on thsi, i really need to know the >> > boudries :-) >> > thanks Ben >> >> > -- >> > You received this message because you are subscribed to the Google Groups >> > "Google Maps API For Flash" 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 >> > athttp://groups.google.com/group/google-maps-api-for-flash?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Google Maps API For Flash" 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-for-flash?hl=en. > > > >
-- You received this message because you are subscribed to the Google Groups "Google Maps API For Flash" 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-for-flash?hl=en.
