[OpenLayers-Users] Changing One Feature's Style

Bill Thoen bthoen at gisnet.com
Thu Sep 4 12:26:32 EDT 2008


I've got a WFS layer of line features and I got the 'loadend' event to 
call a function, and in that function I'm trying to change a feature's 
strokeColor to yellow. Here's my code that doesn't work. But why doesn't it?

function changeFirst (e) {
    e.object.features[0].style.strokeColor="#FF0";
}



More information about the Users mailing list