Re: [OpenLayers-Users] Highlighting changes in the KML layer

2009-11-04 Thread Roald de Wit
Hi Adrian, When you refresh a layer (someone please correct me if I'm wrong here), all your features (items) will be replaced with the new ones, therefore you need to 'manually' keep track of your features. As you suggested, you could, just before a refresh, store all features (or feature.ids)

Re: [OpenLayers-Users] Highlighting changes in the KML layer

2009-11-04 Thread Adrian Popa
Hello Roald, I have a question about marking items as new - I guess they are not marked out of the box, right? When I do the layer refresh, I just do layer.refresh({force: true}); I'm not sure what this does internally, but perhaps I can't count on any attributes I set - to be preserved. Shoul

Re: [OpenLayers-Users] Highlighting changes in the KML layer

2009-11-04 Thread Roald de Wit
Hi Adrian, Adrian Popa wrote: > Thank you for the hint. I suppose I shouldn't expect to see a working > demo of what I need :) > Do you know if the patches presented in ticket 1259 are already part > of openlayers (since the latest version is from january last year?) The patches in that ticket a

Re: [OpenLayers-Users] Highlighting changes in the KML layer

2009-11-03 Thread Adrian Popa
Thank you for the hint. I suppose I shouldn't expect to see a working demo of what I need :) Do you know if the patches presented in ticket 1259 are already part of openlayers (since the latest version is from january last year?) Thanks, helmi wrote: The idea from http://trac.openlayers.org/t

Re: [OpenLayers-Users] Highlighting changes in the KML layer

2009-11-03 Thread helmi
The idea from http://trac.openlayers.org/ticket/1259 {{{ You could create a selectStyle that could be passed to Control.SelectFeature quite easily: create a style object, read the "highlight" styles, create a FidFilter rule for every feature (or groups of features with the same style), use the acco

[OpenLayers-Users] Highlighting changes in the KML layer

2009-11-02 Thread Adrian Popa
Hello everyone, Sorry if this has already been discussed on the list (didn't really check), but I would like to know if there is a solution (or at least a plan to implement a feature) that "somehow" highlights (visually) the elements that have been loaded through KML - in contrast to the ele