The API internal array of markers is not exposed. You have to keep your
own array of references to the markers. For example:

var gmarkers = [];      // global array of marker references

...

   var marker=new GMarker(...);         // whenever you create a marker
   gmarkers.push(marker);               // store a reference to it

Then when you've selected a GLatLngBounds region, you can test which
markers are in it:

for (var i=0; i<gmarkers.length; i++) {
  if (bounds.containsLatLng(gmarkers[i].getLatLng())) {
    ...
  }
}

-- 
http://econym.org.uk/gmap
The Blackpool Community Church Javascript Team


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