Hello, I have a wfs layer with some points. Now I want to add a filter to this wfs layer, that only certain points are displayed.
Here is the code: var my_filter = new OpenLayers.Filter.Comparison({ type: OpenLayers.Filter.Comparison.EQUAL_TO, property: "NAME", value: "Point_1" }); var my_layer = new OpenLayers.Layer.WFS("Points", "http://localhost:8080/geoserver/wfs", { typename: "topp:my_layer", filter: my_filter, maxfeatures: 1000 }, { featureClass: OpenLayers.Feature.WFS }); But when I start my html file, no point is shown on my map (the point with the name Point_1 is surely excisting). When I start my html file without the filter:my_filter in the wfs all points of my wfs are displayed. Is something wrong with my filter? Thanks for your help. Regards stash -- View this message in context: http://n2.nabble.com/WFS-Layer-with-Filter-tp4030894p4030894.html Sent from the OpenLayers Users mailing list archive at Nabble.com. _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users