[OpenLayers-Users] intercepting mouse events that are too rapid in succession

Michael Quentel mquentel at rim.com
Tue Nov 27 17:10:27 EST 2007


Via OpenLayers (or other javascript means), any ideas on how to
intercept mouse events that are "too rapid" in succession?  

For example, if someone uses a mouse wheel too fast, it would be nice to
intercept the movements, then submit the net result to the server,
rather than submitting each event that has occurred.  Reason why this is
of concern is that some server-side mapping applications are prone to
fail if too many requests are made in rapid succession.

Example case: in OpenLayers browser client, user scrolls zoombar super
fast using mouse wheel; map server gets bombarded with a rapid series of
requests, but is too slow to respond to all; server crashes.

Of course, it would be best to correct what is happening on the server,
but sometimes that is not always possible given time constraints. 

I am not using a popular off-the-shelf map server; nor am I using an
open source map server.  Please, any advice on intercepting the net
result of mouse events is appreciated.

Many thanks.

Mike Quentel

---------------------------------------------------------------------
This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.



More information about the Users mailing list