Class: featureService

L.supermap.featureService

要素数据集类。提供:ID 查询,范围查询,SQL 查询,几何查询,bounds 查询,缓冲区查询,地物编辑。

L.supermap.featureService(url, options)

leaflet/services/FeatureService.js, line 19
Name Type Description
url string

要素数据集服务地址。

options Object

参数。

Name Type Default Description
proxy string 可选

服务代理地址。

serverType SuperMap.ServerType SuperMap.ServerType.ISERVER 可选

服务来源 iServer|iPortal|online。

withCredentials boolean false 可选

请求是否携带 cookie。

Example
L.supermap.featureService(url)
     .getFeaturesByIDs(param,function(result){
         //doSomething
     })

Extends

Events

inherited destroy

leaflet/services/ServiceBase.js, line 51

资源释放成功后触发。

Properties:
Name Type Description
this L.supermap.ServiceBase

this 对象。

inherited initialized

leaflet/services/ServiceBase.js, line 38

构造函数构造成功后触发。

Properties:
Name Type Description
this L.supermap.ServiceBase

this 对象。

Methods

inherited destroy()

leaflet/services/ServiceBase.js, line 46

释放资源,将引用的资源属性置空。

editFeatures(params, callback)

leaflet/services/FeatureService.js, line 152

地物编辑服务。

Name Type Description
params SuperMap.EditFeaturesParameters

数据服务中数据集添加、修改、删除参数类。

callback RequestCallback

回调函数。

getFeaturesByBounds(params, callback, resultFormat)

leaflet/services/FeatureService.js, line 64

数据集 bounds 查询服务。

Name Type Default Description
params SuperMap.GetFeaturesByBoundsParameters

数据集范围查询参数类。

callback RequestCallback

回调函数。

resultFormat SuperMap.DataFormat SuperMap.DataFormat.GEOJSON 可选

返回结果类型。

getFeaturesByBuffer(params, callback, resultFormat)

leaflet/services/FeatureService.js, line 86

数据集 buffer 查询服务。

Name Type Default Description
params SuperMap.GetFeaturesByBufferParameters

数据服务中数据集缓冲区查询参数类。

callback RequestCallback

回调函数。

resultFormat SuperMap.DataFormat SuperMap.DataFormat.GEOJSON 可选

返回结果类型。

getFeaturesByGeometry(params, callback, resultFormat)

leaflet/services/FeatureService.js, line 130

数据集几何查询服务类。

Name Type Default Description
params SuperMap.GetFeaturesByGeometryParameters

数据集几何查询参数类。

callback RequestCallback

回调函数。

resultFormat SuperMap.DataFormat SuperMap.DataFormat.GEOJSON 可选

返回结果类型。

getFeaturesByIDs(params, callback, resultFormat)

leaflet/services/FeatureService.js, line 41

数据集 ID 查询服务。

Name Type Default Description
params SuperMap.GetFeaturesByIDsParameters

ID 查询参数类。

callback RequestCallback

回调函数。

resultFormat SuperMap.DataFormat SuperMap.DataFormat.GEOJSON 可选

返回结果类型。

getFeaturesBySQL(params, callback, resultFormat)

leaflet/services/FeatureService.js, line 108

数据集 SQL 查询服务。

Name Type Default Description
params SuperMap.GetFeaturesBySQLParameters

数据服务中数据集 SQL 查询参数类。

callback RequestCallback

回调函数。

resultFormat SuperMap.DataFormat SuperMap.DataFormat.GEOJSON 可选

返回结果类型。