MOVEEND Event in v3 ?

1,431 views
Skip to first unread message

mp-

unread,
Oct 9, 2009, 9:40:40 AM10/9/09
to Google Maps JavaScript API v3
Where is the 'moveend' event in v3?

I need an event that's fired once the bounds_changed has ended
changing.

bounds_changed event appears to fire WHILE a user is dragging the map.
This is not desired.

bratliff

unread,
Oct 9, 2009, 10:11:41 AM10/9/09
to Google Maps JavaScript API v3
Try using an "idle" event listener:

www.polyarc.us/tile

It is a combination of "dragend", "moveend", "zoomend", mapchanged".

simsalabim

unread,
Oct 15, 2009, 9:09:04 AM10/15/09
to Google Maps JavaScript API v3
I use 'dragend' 'cause it suits better for events determining user
stops moving the map. 'idle' is fired repeatedly when the map is idle

Esa

unread,
Oct 15, 2009, 10:36:59 AM10/15/09
to Google Maps JavaScript API v3


On Oct 15, 4:09 pm, simsalabim <kaupa...@gmail.com> wrote:
> I use  'dragend' 'cause it suits better for events determining user
> stops moving the map. 'idle' is fired repeatedly when the map is idle
>

I would suggest 'idle' for those who are considering an event to
trigger a server request. I think 'idle' is designed for the purpose
because I don't see any unnecessary event shots. It is not even
triggered by maptype change, which is good.

'dragend' is not triggered when map is moved by other means or zoom
changed.

Esa

unread,
Oct 15, 2009, 10:55:17 AM10/15/09
to Google Maps JavaScript API v3
By the way. Did we have 'mousemove' on Polygon in previous version. It
returns an object with .latLng but no .pixel property.
http://koti.mbnet.fi/ojalesa/v3/v3events.htm

simsalabim

unread,
Oct 17, 2009, 11:41:38 AM10/17/09
to Google Maps JavaScript API v3


On Oct 15, 6:36 pm, Esa <esa.ilm...@gmail.com> wrote:
> 'dragend' is not triggered when map is moved by other means or zoom
> changed.

It seems to be logically, 'cause dragging the map[by user] and zooming
(or chenging map center by other events, ie infowindows) are
different :)
Reply all
Reply to author
Forward
0 new messages