On Dec 30, 6:14 am, Satish Rapalli <[email protected]> wrote:
>
> Whenever the user pans by a small amount, it is making an ajax call.
> Instead, it should allow a tolerance of  say 10% panning.
>
> I have worked out one solution for this, but works for only few zoom
> levels.
> ( (NElat ~ SW lat) / SWlat )*100 > 10

I have no idea what the ~ operator is. Javascript uses ~ as a unary
bitwise NOT operator.

I would suggest using the movestart and moveend events. Store the map
centre on movestart, and compare it with the new map centre on
moveend. If the difference is more than 10% of the map bounds, redo
the AJAX call.

movestart/moveend will fire for any movement of the map, whether
panned using the control, dragged or automatically moved by opening an
infoWindow.

Andrew
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" 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-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to