Re: [OpenLayers-Users] Forcing a redraw of a Vector Layer

2009-07-07 Thread Adrian Popa
Of Kris Geusebroek Sent: Tuesday, July 07, 2009 9:46 AM To: Roald de Wit Cc: users@openlayers.org Subject: Re: [OpenLayers-Users] Forcing a redraw of a Vector Layer Hi Roald, I will create a ticket and provide my patch with it. A test case will be difficult I guess since I don't know an eas

Re: [OpenLayers-Users] Forcing a redraw of a Vector Layer

2009-07-07 Thread Andreas Hocevar
Hi, instead of creating a SelectFeature control for each layer, create one SelectFeature control and configure it with all layers you want to select from. This requires OpenLayers 2.8 or a trunk version not older than a few months. Regards, Andreas. Sajeer... wrote: > > Hi, > > I have three K

[OpenLayers-Users] Forcing a redraw of a Vector Layer

2009-07-07 Thread Sajeer...
Hi, I have three KML *a.kml* ,*b.kml* and *c.kml* I had created three GML layers for these kmls , and SelectFeature control for each layer and added into map. Also these layers are included into the layerswitcher. I used SelectFeature control to display a popup with feature information. Now my

Re: [OpenLayers-Users] Forcing a redraw of a Vector Layer

2009-07-07 Thread Kris Geusebroek
@openlayers.org Subject: Re: [OpenLayers-Users] Forcing a redraw of a Vector Layer Hi Roald, I will create a ticket and provide my patch with it. A test case will be difficult I guess since I don't know an easy way to measure the memory usage I will save some time today to create the ticke

Re: [OpenLayers-Users] Forcing a redraw of a Vector Layer

2009-07-07 Thread Kris Geusebroek
From: Roald de Wit [mailto:roald.de...@lisasoft.com] Sent: Tuesday, July 07, 2009 9:27 AM To: Kris Geusebroek Cc: Adrian Popa; users@openlayers.org Subject: Re: [OpenLayers-Users] Forcing a redraw of a Vector Layer Hi Kris, Kris Geusebroek wrote: > Hi Adrian, > > Be careful with this i

Re: [OpenLayers-Users] Forcing a redraw of a Vector Layer

2009-07-07 Thread Roald de Wit
Hi Kris, Kris Geusebroek wrote: > Hi Adrian, > > Be careful with this in the Internet Explorer browser since it consumes > a lot of memory this way. > The removed dom elements are not really removed (at least not from > memory) and keep consuming memory until a full page refresh is done. > > I hav

Re: [OpenLayers-Users] Forcing a redraw of a Vector Layer

2009-07-07 Thread Kris Geusebroek
provide a patch for you if you like Cheers Kris -Original Message- From: users-boun...@openlayers.org [mailto:users-boun...@openlayers.org] On Behalf Of Adrian Popa Sent: Tuesday, July 07, 2009 9:11 AM To: Roald de Wit Cc: users@openlayers.org Subject: Re: [OpenLayers-Users] Forcing a redraw

Re: [OpenLayers-Users] Forcing a redraw of a Vector Layer

2009-07-07 Thread Adrian Popa
Thank you very much Roald - it did the trick :) Roald de Wit wrote: > Hi Adrian, > > With the new vector behaviour, layer refreshing is a bit different. This > should work for you: > > locations.refresh({force: true}); > > Regards, > > Roald > > Adrian Popa wrote: >> Hello everyone, >> >> I'm usin

Re: [OpenLayers-Users] Forcing a redraw of a Vector Layer

2009-07-06 Thread Roald de Wit
Hi Adrian, With the new vector behaviour, layer refreshing is a bit different. This should work for you: locations.refresh({force: true}); Regards, Roald Adrian Popa wrote: > Hello everyone, > > I'm using a Vector layer with a BBOX strategy and gets dynamic data from > a KML file and it works

[OpenLayers-Users] Forcing a redraw of a Vector Layer

2009-07-06 Thread Adrian Popa
Hello everyone, I'm using a Vector layer with a BBOX strategy and gets dynamic data from a KML file and it works as expected. However, the data I'm displaying is kind of dynamic (alarms which come and go) and I would like to automatically refresh the layer (without doing a page reload) from tim