WFS protocol example.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12140 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -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 @@ 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
|
||||
|
||||
Reference in New Issue
Block a user