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 <[email protected]> wrote:

> 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 that county will be listed.
>
> How would one do this? Is there any examples/tutorials that have
> already implemented this?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Maps JavaScript API v3" group.
> To post to this group, send email to
> [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-maps-js-api-v3%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-maps-js-api-v3?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.

Reply via email to