RV: [OpenLayers-Users] Openlayers & IE6 performance problem/error
Ingo Weinzierl
ingo.weinzierl at intevation.de
Mon Feb 21 13:19:57 EST 2011
Hi David,
I have just tried to open the demo you've provided. But there is
just a blank screen without any content. Firebug tells me, that
there are resources placed at 192.168.3.14 which can't work for me
;-) Can you repair the example, so that I can watch the problem on
your site? This would be nice for me before I start searching for
the problem.
Regards, Ingo
On Wed, Feb 16, 2011 at 12:47:03PM +0100, David Alda Fernandez de Lezea wrote:
>
> Hi again, after doing some tests I can confirm that this happens also in IE7 and IE8. Any ideas/suggestions will much appreciated.
>
> ________________________________
>
> De: openlayers-users-bounces at lists.osgeo.org [mailto:openlayers-users-bounces at lists.osgeo.org] En nombre de David Alda Fernandez de Lezea
> Enviado el: martes, 15 de febrero de 2011 13:09
> Para: openlayers-users at lists.osgeo.org
> Asunto: [OpenLayers-Users] Openlayers & IE6 performance problem/error
>
>
>
> Hi there,
>
> We've finally achieved publishing our OpenLayers based GIS web application for our customers with GeoServer in the back-end. Everything works fine, well, almost .We've noticed that there is a worrying issue that affects navigation through the map when a SLD is applied to a WMS layer. This issue appears when the user opens the web application with IE6 and drags the map quickly. It seems that IE goes crazy, and shows the typical generic error message of javascript. If you click on yes button it shows the Just In time debugger and the execution stops in the folowing line:
>
>
>
> For adding this layers on the fly I use this piece of code:
>
> addWMSLayer: function(layerName,labelName,owsUrl, imageFormat){
> //HACK IE
> if (this._BROWSER_NAME == "Explorer"){
> var layer = new OpenLayers.Layer.WMS.Post( labelName,owsUrl,{layers: layerName, format: imageFormat, transparent: 'true'},{maxExtent: new OpenLayers.Bounds(460000, 4690000, 610000, 4820000),'buffer': 0, visibility: true,isBaseLayer: false, units: 'm', reproject: false, opacity: 0.8} );
> layer.transitionEffect = 'resize';
> this.map.addLayers([layer]);
> }else{
> var layer = new OpenLayers.Layer.WMS( labelName,owsUrl,{layers: layerName, format: imageFormat, transparent: 'true'},{maxExtent: new OpenLayers.Bounds(460000, 4690000, 610000, 4820000), 'buffer': 0, visibility: true,isBaseLayer: false, units: 'm', reproject: false, opacity: 0.8} );
> layer.transitionEffect = 'resize';
> this.map.addLayers([layer])
> }
>
> }
>
>
> Then I apply some SLD's generated on the fly with the following code
>
> applyStyleToLayer: function(layerName,estilo){
> if (estilo.SLD)
> this.map.getLayersByName(layerName)[0].mergeNewParams({SLD: estilo.SLD});
> else if (estilo.SLD_BODY)
> this.map.getLayersByName(layerName)[0].mergeNewParams({SLD_BODY: estilo.SLD_BODY});
> else if(estilo.STYLES)
> this.map.getLayersByName(layerName)[0].mergeNewParams({STYLES: estilo.STYLES});
> }
>
> You can test the behaviour through this URL:
>
> http://www.iktlan.net/mapa/generaMapa.asp?sesion=AAD1058_19&ambito=MUNI
>
> I'm using OpenLayers version 2.9.1.
>
>
> Thanks in advance.
>
>
>
>
> Un saludo,
>
> ··················································································
>
> David Alda Fernández de Lezea
> Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad
>
> IKT
> Granja Modelo s/n · 01192 · Arkaute (Araba)
>
> ··················································································
> Tlfnos.: 945-00-32-95 Fax: 945-00.32.90
> ··················································································
> email: dalda at ikt.es web: www.ikt.es
> ··················································································
>
>
Content-Description: ATT196656074.txt
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
--
Ingo Weinzierl | ++49-541-335083-0 | OpenPGP key: 0x2D2E2573
Intevation GmbH, Neuer Graben 17, 49074 Osnabrück | AG Osnabrück, HR B 18998
Geschäftsführer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20110221/cd595206/attachment.bin
More information about the Users
mailing list