Re: [Google Maps API v3] Update marker list to viewable bounds.

2010-10-13 Thread Chris Broadfoot
Listen to the 'idle' event, like: google.maps.event.addListener(map, 'idle', function() { var bounds = map.getBounds(); // update depending on bounds }); The idle event is fired whenever the user has finished dragging or zooming. On Tue, Oct 12, 2010 at 7:16 AM, ParoXsitiC wrote: > I am lo

[Google Maps API v3] Update marker list to viewable bounds.

2010-10-11 Thread ParoXsitiC
I am looking to have an event triggers upon map move/zoom that will update a list of markers only in the viewable area. For example, is the whole state of Michigan is in view, then all the markers located in Michigan will be listed. If the view is zoomed into a certain county, then all markers in t