thanks michael, with refresh change the color but first hide the layers with
old colors and then show with updated color, there is a second that not show
nothing (flick).


I found a solution, with function drawFeature applied to every features:

len=layer_wfs.features.length;
for(var i=0; i<len; i++) {
layer_wfs.drawFeature( layer_wfs.features[i] );
}

Also, If you change the StyleMap of the layer before like this
"pluvios_wfs.styleMap = style_yellow;" the features are drawn with new
style.



2010/10/20 Michael <[email protected]>

>  I've found in my animations that making the changes to the features and
> then doing a refresh on the entire layer seems to work
>
>
> On 10/20/2010 7:19 AM, rai 8 wrote:
>
> Hi!
>
>  I'm been doing a app that have a animation with overlays. with raster
> layers I create a layer for every frame and then change the display
> attribute because is the only way to avoid flickering.
>
>  With WFS, vector layers, I only need to change the color of the feature,
> I tried to change the styleMap and then refresh or redraw but it flicks,
> anyone know a way to do this without the flickering effect... like sets
> the color of one feature without change styleMap of a layer...
>
>
>  thanks!
>
>
> _______________________________________________
> Users mailing 
> [email protected]http://lists.osgeo.org/mailman/listinfo/openlayers-users
>
>
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>
>
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to