How can find the end of a map service response?

Discussion created by cindylu on Apr 21, 2011

I find the reason for this incorrect overlay - The app send request to map service when zoom to a bigger area. But the response takes longer because there are more data in this area. Then the user zoomed in, and send the second request. Because the second request is to zoom to a smaller area, so the response is much faster and displayed an map. Then the response for the first request comes back and displayed a much bigger area (map) on top of the basemap (smaller area).

Can anyone tell me how can I handle the map service response - either the user won't be able to do the send request before the first request finish, or terminate the first request if the user placed a second request (which I proffer in my application).

Thank you very much for any kind of help you may provide!