I found a nice solution mixing your comments and one idea from myself. I made a timer that fires other event that checks how much the user dragged the map. If is was a small movement, i do nothing. I use the idle event to stop the timer. I got a really smooth loading effect :)
Thanks all. On 27 mayo, 00:31, Ben Appleton <[email protected]> wrote: > Have you tried Map event 'idle'? That fires when the user stops interacting > with the map (no panning/zooming for 300ms). > > On 27 May 2010 00:45, "Miguel.camba" <[email protected]> wrote: > > Hi. > I have map with some markers shown on it, and i want to add more > markers when the user drags the map. I added a dragend event to > refresh markers and works perfect, but i would like to make it more > live, so i changed de dragend event for a drag event, but drag event > fires too often, so i overload the server (spatial queries are heavy). > There is any way to fire the drag event each... half second maybe. > > Thanks > > -- > 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%2B > [email protected]> > . > For more options, visit this group > athttp://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.
