Pan Event Listener?

543 views
Skip to first unread message

Michael Bentz

unread,
Jul 19, 2010, 5:48:08 PM7/19/10
to Google Maps JavaScript API v3
Whenever the center of the map changes, I'd like to take note of the
new center lat/lng. I added a listener to the "dragend" event which
works well. However, it doesn't catch when someone uses the pan
navigation control. The reference doesn't show panning to be an event
and the "bounds_changed" and the "center_changed" events fire
continuously. This present an efficiency issue as the listener makes a
call to the server.

Has anybody come up with a work around (besides disabling the pan
control)?

Thanks in advance!

Rossko

unread,
Jul 19, 2010, 6:44:23 PM7/19/10
to Google Maps JavaScript API v3
> Has anybody come up with a work around (besides disabling the pan
> control)?

Previous discussion
http://groups.google.com/group/google-maps-js-api-v3/browse_thread/thread/e1ea5553d349d134/57b255839476ec5d
Reply all
Reply to author
Forward
0 new messages