Try something like this:
// assuming myMap is your GMap2 and myMarkers is an array of GMarkers
var mapBounds=myMap.getBounds();
for(var i=0; i<myMarkers.length; i++){
if(mapBounds.containsLatLng(myMarkers[i].getLatLng())){
// myMarkers[i] is anchored to a point within the map's
current
bounds
};
}
Martin.
On 15 Sep, 15:38, emiliano <[email protected]> wrote:
> Hi!, im looking for a way to get the currently visible markers
> inbounds the shown portion of map. Is that posible?
>
> Thanks!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---