<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>I have a vector layer that is to contain features that are filtered from a WMS layer.  The filter is working correctly and the correct feature can be seen in Firebug in the response, but the feature is not added to the vector layer.  Previously I had an issue where the coordinates were reversed.  That problem has been solved, but now the feature is just not added to the layer.  The WMS layer is in EPSG:4326 and the map is in EPSG:900913.  Is there any reason the feature would not be added based on the following code:<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in;text-indent:.5in'>var filter = new OpenLayers.Filter.Comparison({<o:p></o:p></p><p class=MsoNormal>                                                type: OpenLayers.Filter.Comparison.EQUAL_TO,<o:p></o:p></p><p class=MsoNormal>                                                property: 'myID',<o:p></o:p></p><p class=MsoNormal>                                                value: args['myID']<o:p></o:p></p><p class=MsoNormal>                                });<o:p></o:p></p><p class=MsoNormal>                                var myLayer = new OpenLayers.Layer.Vector("Selected", {<o:p></o:p></p><p class=MsoNormal>                                                strategies: [new OpenLayers.Strategy.Fixed()],<o:p></o:p></p><p class=MsoNormal>                                                protocol: new OpenLayers.Protocol.WFS({<o:p></o:p></p><p class=MsoNormal>                                                                version: "1.1.0",<o:p></o:p></p><p class=MsoNormal>                                                                url: "http://myserver/geoserver/mydata/wfs",<o:p></o:p></p><p class=MsoNormal>                                                                featureType: "myfeaturetype", //name of the geoserver layer<o:p></o:p></p><p class=MsoNormal>                                                                featureNS: "mydata", //name of the geoserver store<o:p></o:p></p><p class=MsoNormal>                                                                geometryName: "the_geom",<o:p></o:p></p><p class=MsoNormal>                                                                filter: filter<o:p></o:p></p><p class=MsoNormal>                                                }),<o:p></o:p></p><p class=MsoNormal>                                                displayInLayerSwitcher: false,<o:p></o:p></p><p class=MsoNormal>                                                isBaseLayer: false,<o:p></o:p></p><p class=MsoNormal>                                                visibility: true,<o:p></o:p></p><p class=MsoNormal>                                                styleMap: new OpenLayers.StyleMap({<o:p></o:p></p><p class=MsoNormal>                                                                "default": new OpenLayers.Style({<o:p></o:p></p><p class=MsoNormal>                                                                                stokeColor: "#FFFF00",<o:p></o:p></p><p class=MsoNormal>                                                                                strokeOpacity: 0.5,<o:p></o:p></p><p class=MsoNormal>                                                                                fillColor: "#FFFF00",<o:p></o:p></p><p class=MsoNormal>                                                                                fillOpacity: 0.3<o:p></o:p></p><p class=MsoNormal>                                                                })<o:p></o:p></p><p class=MsoNormal>                                                }),<o:p></o:p></p><p class=MsoNormal>                                });<o:p></o:p></p><p class=MsoNormal>                                myLayer.events.register("beforefeatureadded", this, function(e) {<o:p></o:p></p><p class=MsoNormal>                                                                e.feature.geometry.transform(new OpenLayers.Projection('EPSG:4326'),this.map.getProjectionObject());<o:p></o:p></p><p class=MsoNormal>                                                                myLayer.addFeatures(e.feature);<o:p></o:p></p><p class=MsoNormal>                                });<o:p></o:p></p><p class=MsoNormal>I guess the filter is actually a before feature added event, so could that be part of the problem?  I have done a lot of searching on this issue, and tried some variations that I found posted, but nothing has worked.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>One scenario that I tried, the feature was added in the correct location, but the request kept running until the browser crashed.  I did not post the code for that.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Any suggestions are greatly appreciated.  I apologize if this post is very similar to a previous post, but this is actually a different problem related to the same operation.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Thanks.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>