> The state of features read from your web service is null, isn't it? Do
> you really need it to be "unknown"?

You are right.  I got it almost working.  If only I could assign a style
to feature.state = null, I'd be done

var lookup = {};
           @@ lookup["null"] = {fillColor: "blue"}; @@
            lookup[OpenLayers.State.UNKNOWN] = {fillColor: "blue"};
            lookup[OpenLayers.State.UPDATE] = {fillColor: "green"};
            lookup[OpenLayers.State.DELETE] = {fillColor: "red"};
            lookup[OpenLayers.State.INSERT] = {fillColor: "orange"};

Thanx,

Yves

_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to