[OpenLayers-Commits] r12140 -
trunk/openlayers/lib/OpenLayers/Protocol
commits-20090109 at openlayers.org
commits-20090109 at openlayers.org
Thu Jun 30 01:55:57 EDT 2011
Author: tschaub
Date: 2011-06-29 22:55:56 -0700 (Wed, 29 Jun 2011)
New Revision: 12140
Modified:
trunk/openlayers/lib/OpenLayers/Protocol/WFS.js
Log:
WFS protocol example.
Modified: trunk/openlayers/lib/OpenLayers/Protocol/WFS.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Protocol/WFS.js 2011-06-30 05:44:44 UTC (rev 12139)
+++ trunk/openlayers/lib/OpenLayers/Protocol/WFS.js 2011-06-30 05:55:56 UTC (rev 12140)
@@ -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:
* {<OpenLayers.Protocol>} 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 @@
};
/**
- * 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
More information about the Commits
mailing list