[OpenLayers-Users] Destroy/Delete a vector feature

Yves Moisan yves.moisan at boreal-is.com
Tue Dec 16 17:04:46 EST 2008


> 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




More information about the Users mailing list