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"; }