Hi Jim,

I am not quite sure if I undestood you right, but maybe you use two
vector layers with a WFS protocol and a filter, for example like this:

new OpenLayers.Layer.Vector("WFS", {
                strategies: [new OpenLayers.Strategy.BBOX()],
                protocol: new OpenLayers.Protocol.WFS({
                    url:  "http://demo.opengeo.org/geoserver/wfs";,
                    featureType: "tasmania_roads",
                    featureNS: "http://www.openplans.org/topp";
                }),
                styleMap: new OpenLayers.StyleMap({
                    strokeWidth: 3,
                    strokeColor: "#333333"
                }),
                filter: 
                   new OpenLayers.Filter.Comparison({
                       type: OpenLayers.Filter.Comparison.EQUAL_TO,
                         property: "TYPE",
                           value: "deed"
                    })
            })


(adapted from http://openlayers.org/dev/examples/wfs-filter.html)


Best regards,
Chris



Am 06.12.2011 06:51, schrieb Jim White:
> Hi,
>
> I would like to select features from a wfs layer in the treepanel based 
> on the vaue of an attribute. For example a wfs layer with an attribute 
> 'type' and values of deed or grant and the layer tree that would have 
> checkboxes to show either deeds or grants.
>
> What objects do I use to do this?
>
> Thanks,
> Jim White
> _______________________________________________
> Users mailing list
> Users@geoext.org
> http://www.geoext.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
Users@geoext.org
http://www.geoext.org/cgi-bin/mailman/listinfo/users

Reply via email to