[OpenLayers-Dev] [OpenLayers-Users] Pending tile requests in IE

Joao Duarte joao.c.duarte at co.sapo.pt
Tue Mar 10 06:05:38 EDT 2009


Hi Erik,

I haven't had time to make the patch but your solution is exactly the same
as ours.

Same line, same code!

Regards,

João Duarte

-----Original Message-----
From: Eirik Wahl [mailto:Eirik.Wahl at powel.no] 
Sent: terça-feira, 10 de Março de 2009 09:39
To: Andreas Hocevar; Joao Campos Duarte (PRIMEIT)
Cc: users at openlayers.org; OpenLayers dev mailing list
Subject: RE: [OpenLayers-Users] [OpenLayers-Dev] Pending tile requests in IE

Hi!

I have not seen the fix made by João Duarte, but I have re-created the patch
(I think...) for myself, and it seems that pending tile requests are
correctly cancelled with this fix:

OpenLayers version: 2.7
File: openlayers\lib\OpenLayers\Tile\Image.js is changed at line 121, where
this is added:

this.imgDiv.src = null; // Pending image requests will be cancelled with
this

(This is directly after the line "this.imgDiv.urls = null;".)

Sorry for not creating a ticket, but I hope this helps!

(And thanks to João Duarte for finding this in the first place!)

Eirik


-----Original Message-----
From: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org] On
Behalf Of Andreas Hocevar
Sent: Friday, March 06, 2009 6:06 PM
To: Joao Duarte
Cc: users at openlayers.org; OpenLayers dev mailing list
Subject: Re: [OpenLayers-Users] [OpenLayers-Dev] Pending tile requests in IE

Hi,

can you share your "own patch"? Sometimes it is easier to see what
people think is going wrong by looking at their patches. Would be nice
if you could create a ticket with your patch, or at least post your
patch here if the former requires too much effort.

Thanks,
Andreas.

2009/3/4 Joao Duarte <joao.c.duarte at co.sapo.pt>:
> Hi list,
>
>
>
> We have our OpenLayers application getting the tile images via WMS.
>
>
>
> We found that in IE, after several zooms/drags some tile requests were
still
> pending, even that those images no longer existed in the map area. By
> looking at the code of the destroy method in OpenLayers.Tile.Image, we
found
> that the src property of imgDiv wasn't being set to null. We tried setting
> the src property to null and the pending requests are now gone.
>
>
>
> We think this only happens in IE since that we didn't see this behavior on
> other browsers.
>
>
>
> Currently we have our own patch. Is this a know issue? A patch already
> exists?
>
>
>
> Regards,
>
>
>
> João Duarte,
>
> SAPO Maps - http://maps.sapo.pt
>
>
>
> _______________________________________________
> Dev mailing list
> Dev at openlayers.org
> http://openlayers.org/mailman/listinfo/dev
>
>



-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.
_______________________________________________
Users mailing list
Users at openlayers.org
http://openlayers.org/mailman/listinfo/users

**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.powel.no
**********************************************************************





More information about the Dev mailing list