From c48f2d1ca34b3c3539c0a92308e3a0c4b74bb377 Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Thu, 30 Jun 2011 05:55:56 +0000 Subject: [PATCH] WFS protocol example. git-svn-id: http://svn.openlayers.org/trunk/openlayers@12140 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Protocol/WFS.js | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/lib/OpenLayers/Protocol/WFS.js b/lib/OpenLayers/Protocol/WFS.js index fe1da18953..89df923470 100644 --- a/lib/OpenLayers/Protocol/WFS.js +++ b/lib/OpenLayers/Protocol/WFS.js @@ -8,11 +8,24 @@ */ /** - * Function: OpenLayers.Protocol.WFS + * Class: OpenLayers.Protocol.WFS * Used to create a versioned WFS protocol. Default version is 1.0.0. * * Returns: * {} A WFS protocol of the given version. + * + * Example: + * (code) + * var protocol = new OpenLayers.Protocol.WFS({ + * version: "1.1.0", + * url: "http://demo.opengeo.org/geoserver/wfs", + * featureType: "tasmania_roads", + * featureNS: "http://www.openplans.org/topp", + * geometryName: "the_geom" + * }); + * (end) + * + * See the protocols for specific WFS versions for more detail. */ OpenLayers.Protocol.WFS = function(options) { options = OpenLayers.Util.applyDefaults( @@ -26,7 +39,7 @@ OpenLayers.Protocol.WFS = function(options) { }; /** - * Function: OpenLayers.Protocol.WFS.fromWMSLayer + * Function: fromWMSLayer * Convenience function to create a WFS protocol from a WMS layer. This makes * the assumption that a WFS requests can be issued at the same URL as * WMS requests and that a WFS featureType exists with the same name as the