用来创建带版本号的WFS协议。默认版本是1.0.0,现支持1.0.0和1.1.0。
{SuperMap.Protocol} 给定版本的WFS协议。
//1.0.0的例子
var protocol = new SuperMap.Protocol.WFS({
version: "1.0.0",
url: "http://localhost:8090/iserver/services/data-world/wfs100",
featureType: "Capitals",
featureNS: "http://www.supermap.com/World",
featurePrefix:"World",
geometryName: "the_geom"
});
//1.1.0的例子
vectorLayer = new SuperMap.Layer.Vector("China Countries", {
strategies: [new SuperMap.Strategy.BBOX()],
visibility:true,
protocol: new SuperMap.Protocol.WFS({
version: "1.1.0",
srsName: "EPSG:4326",
//这里的服务是本地电脑发出的arcgis的wfs1.1.0服务
url: "http://192.168.18.118:6080/arcgis/services/China/MapServer/WFSServer",
featureType: "Countries",
featurePrefix: "China",
maxFeatures: "10",
schema: null,
geometryName: "Shape"
}),
projection: new SuperMap.Projection("EPSG:4326")
});
从特定WFS版本的协议查看详情。
| SuperMap. |
用来创建带版本号的WFS协议。默认版本是1.0.0,现支持1.0.0和1.1.0。 |
| Constants | |
| SuperMap. |