[OpenLayers-Users] How to abort a loading of tiles and generate a new request?

Stephen Woodbridge woodbri at swoodbridge.com
Tue Nov 27 22:11:06 EST 2007


Hi all,

I have a situation where we load a generic index.html page and it starts 
loading tiles for some generic map center and scale. While this is 
happening we generate a GeoIP request via an AJAX request. This request 
might fail, in which case we just want the original tiles to load, but 
more often than not it succeeds and we want to abort the current set of 
tiles that are loading and request and new center and zoom scale. This 
all works just fine except the second zoom request apprears to have to 
wait for the tiles of the first to finish loading.

Shouldn't a new request, abandon or abort a previous request that is 
incomplete? Is this supposed to be happening already?

Using: OpenLayers.VERSION_NUMBER="$Revision: 4899 $";

Thanks,
   -Steve W



More information about the Users mailing list