From c0ae33e4578a7eff030d7ecaa2e65d9c1a93fd51 Mon Sep 17 00:00:00 2001 From: ahocevar Date: Thu, 10 Mar 2011 22:46:42 +0000 Subject: [PATCH] documenting the options argument and how to limit the attributes returned by GetFeature git-svn-id: http://svn.openlayers.org/trunk/openlayers@11692 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Protocol/WFS/v1.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/lib/OpenLayers/Protocol/WFS/v1.js b/lib/OpenLayers/Protocol/WFS/v1.js index 981c887e98..f5578f6dcd 100644 --- a/lib/OpenLayers/Protocol/WFS/v1.js +++ b/lib/OpenLayers/Protocol/WFS/v1.js @@ -149,6 +149,10 @@ OpenLayers.Protocol.WFS.v1 = OpenLayers.Class(OpenLayers.Protocol, { * format's read method (that is only about reading transaction * responses). * + * Parameters: + * options - {Object} Options for the read operation, in addition to the + * options set on the instance (options set here will take precedence). + * * To use a configured protocol to get e.g. a WFS hit count, applications * could do the following: * @@ -162,6 +166,16 @@ OpenLayers.Protocol.WFS.v1 = OpenLayers.Class(OpenLayers.Protocol, { * } * }); * (end) + * + * To limit the attributes returned by the GetFeature request, applications + * can use the propertyNames option to specify the properties to include in + * the response: + * + * (code) + * protocol.read({ + * propertyNames: ["DURATION", "INTENSITY"] + * }); + * (end) */ read: function(options) { OpenLayers.Protocol.prototype.read.apply(this, arguments);