filtering either after projection or in the protocol->format->filter does
not seem to be working at all.

var state = new OpenLayers.Layer.Vector("State", {
                projection: map.displayProjection,
                filter: new OpenLayers.Filter.Comparison({
                type: OpenLayers.Filter.Comparison.EQUAL_TO,
                property: 'SCHMGT',
                value: 2
            }),
        strategies: [new OpenLayers.Strategy.Fixed()],
                protocol: new OpenLayers.Protocol.HTTP({
                    url:
"klm/GIS.json",
                    format: new OpenLayers.Format.GeoJSON({

                        extractAttributes: true

                    })
                })
            });

How does one implement a filter??
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to