szgeoinfo.layer.WFSLayer

Class: szgeoinfo.layer.WFSLayer



new WFSLayer(id, name,url, projstr, typename, style, minZoom, maxZoom)

WFS图层

Parameters:
Name Type Description
id string

图层Id 可以根据Id 查询操作图层

name string

图层名称

url string

wfs服务url http://localhost/arcgis/services/modelmap/MapServer/WFSServer

projstr string

坐标系编号,默认EPSG:3857,同时支持EPSG:4326、EPSG:4490

typename string

wfs中的typename 图层名称

style szgeoinfo.style.Style

地图显示样式

minZoom number

开始显示级别

maxZoom number

结束显示级别

Example
var layer0 = new szgeoinfo.layer.WFSLayer(123,"图层","http://localhost:6080/arcgis/rest/services/theme/MapServer","EPSG:3857","modelmap:futianmac");
map.addWFSLayer(layer0);

Methods


query(queryParams, callback) → {feature}

WFS图层 query

Parameters:
Name Type Description
queryParams array

查询数据

callback function

返回结果回掉函数

Returns:

返回查询结果