On Oct 19, 6:12 pm, Dan <[email protected]> wrote: > Is there a way to get a list of all the overlays (Markers, Polygons, > PolyLines) that are currently in view (at least partially) in the > current getBounds() of the map?
The API doesn't do this. > Even a way just to get all the overlays currently added to the map, > and I can figure out the getBounds() / GLatLngBounds.containsLatLng() > logic myself? The API uses the assumption that you know your data and what you have placed on the map -- possibly by maintaining an array of objects which are then added to the map -- and can manipulate and interrogate them yourself. The API allows you to get properties of overlays, provided you have maintained your own external reference to them. It doesn't maintain external references for you. -- You received this message because you are subscribed to the Google Groups "Google Maps API V2" 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.
