new FieldService(url, options)
Usage
import { FieldService } from '@supermapgis/iclient-mapboxgl';
new FieldService(url, options);<script type="text/javascript" src="https://iclient.supermap.io/dist/mapboxgl/iclient-mapboxgl.js"></script>
<script>
new mapboxgl.supermap.FieldService({paramsNames});
</script>
mapboxgl/services/FieldService.js, line 8
| Name | Type | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
url |
string |
数据服务地址,如 http://{ip}:{port}/iserver/services/data-world/rest/data 。 |
|||||||||||||||
options |
Object |
参数。
|
Example
new FieldService(url).getFields(function(result){
//doSomething
});
Extends
FieldService
-> ServiceBase
Events
-
inherited initialized
mapboxgl/services/ServiceBase.js, line 32 -
构造函数构造成功之后触发。
Properties:
Name Type Description thisObject this 对象。
Methods
-
getFields(params, callback){Promise}
mapboxgl/services/FieldService.js, line 32 -
字段查询服务。
Name Type Description paramsFieldParameters 字段信息查询参数类。
callbackRequestCallback 可选 回调函数,该参数未传时可通过返回的 promise 获取结果。
Returns:
Type Description Promise Promise 对象。 -
getFieldStatisticsInfo(params, callback)
mapboxgl/services/FieldService.js, line 43 -
字段统计服务。
Name Type Description paramsFieldStatisticsParameters 字段统计信息查询参数类。
callbackRequestCallback 回调函数。