[OpenLayers-Users] Browser slow performance while parsingOpenLayers.Vector.Feature features

Andreas Hocevar ahocevar at opengeo.org
Thu Apr 7 10:27:16 EDT 2011


You may also want to have a look at http://ol-performance.appspot.com/, especially trick 5.

Regards,
Andreas.

On Apr 7, 2011, at 14:50 , David Alda Fernandez de Lezea wrote:

> Sarah,
>  
> Thanks for your response. I use it in my app, but I think that in this case is not useful. The problem occurs, I guess, in the moment of parsing the features in openlayers.layer.vector so during this task the browser gets freezed like if it was not responding, after a period of time the browsers zooms to the data extent and is then when it appears the OpenLayers' loading panel, but it appears because of the zoom action not because of the procces of parsing the features.
>  
> Regards,
> 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
> ··················································································
> 
>  
> 
> De: Sarah Schuessler [mailto:sarah_flip at yahoo.de] 
> Enviado el: jueves, 07 de abril de 2011 14:34
> Para: David Alda Fernandez de Lezea; Zac Spitzer; openlayers-users at lists.osgeo.org
> Asunto: AW: [OpenLayers-Users] Browser slow performance while parsingOpenLayers.Vector.Feature features
> 
> Hi David,
> 
> if you want to use a loading image you can use OpenLayers.Control.LoadingPanel (it`s a addon afaik). 
> I use it because I´m having similar task of yours.
> 
> best regards
> Sarah
> 
> Von: David Alda Fernandez de Lezea <dalda at ikt.es>
> An: Zac Spitzer <zac.spitzer at gmail.com>; openlayers-users at lists.osgeo.org
> Gesendet: Donnerstag, den 7. April 2011, 14:21:28 Uhr
> Betreff: RE: [OpenLayers-Users] Browser slow performance while parsingOpenLayers.Vector.Feature features
> 
> Zac,
>  
> thanks for your response. I know IE sux, but 95% of our customers have IE6 installed, and they are not allowed to switch to another version or to get other browsers.
>  
> I get the polygons from GeoServer from a wfs layer. They are complex polygons with lots of vertices (parcels from cadastre) and I can't simplify the features because we are on the task of online editing using wfs-t protocol, so the edition must be accurate.
>  
> I'm just wondering if there is something that I can show, like a progress bar or loading image, to tell the user this kind of operations will take a bit, but I'm afraid is going to be difficult because of the browser program.
>  
> Any idea?
>  
> Regards,
> 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
> ··················································································
> 
>  
> 
> De: openlayers-users-bounces at lists.osgeo.org [mailto:openlayers-users-bounces at lists.osgeo.org] En nombre de Zac Spitzer
> Enviado el: jueves, 07 de abril de 2011 13:33
> Para: openlayers-users at lists.osgeo.org
> Asunto: Re: [OpenLayers-Users] Browser slow performance while parsingOpenLayers.Vector.Feature features
> 
> short answer, IE just sucks
> 
> long answer, you could switch over to a real mapserver engine
> 
> how dense are your polygons? generalising them might help a bit if they are very dense
> 
> On Thu, Apr 7, 2011 at 9:29 PM, David Alda Fernandez de Lezea <dalda at ikt.es>wrote:
> Hi list,
> 
> I'm having some performance issues with most browsers, but specially with IE (this is the real problem).I have a vector layer in which once the map is shown I load from 50 to 100 polygons and I zoom to them. I know that this is a task it will consume some time, but the problem is that the browser gets freezed and I would like to improve that in order to improve the user experience.
> 
> I've tried this in
> 
> FF --> 5-10 seconds
> Safari --> 5 seconds
> Chrome --> 5 seconds
> Opera --> 5 seconds
> IE6 --> 60 seconds
> IE7 --> 40 seconds
> IE8 --> 30 seconds
> 
> Is there something that I can do to improve the browser's response??
> 
> Thanks.
> 
> 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
> ··················································································
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
> 
> 
> 
> -- 
> Zac Spitzer 
> Solution Architect / Director
> Ennoble Consultancy Australia
> http://www.ennoble.com.au
> http://zacster.blogspot.com
> +61 405 847 168
> 
> 
> 
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users



-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.



More information about the Users mailing list