L.kqmap.services.OverlapAnalysis(options, function_good, function_error){Promise.<TResult>}
leaflet/services/OverlapAnalysis.js, line 28
Name | Type | Description | ||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
叠置分析的配置参数
|
||||||||||||||||||||||||||||||||||||
function_good |
function |
查询成功后执行的函数 |
||||||||||||||||||||||||||||||||||||
function_error |
function |
查询失败后执行的函数 |
Returns:
Type | Description |
---|---|
Promise.<TResult> |
Example
var good_func = (response) => {}
var error_func = (error) => {}
var options = {}
options.url = service_ip + "/KQGis/rest/services/china3857";
options.layerId = 2;
options.startindex = 0;
options.reqCount = 1;
options.geometry = JSON.stringify(geometry);
options.geoSRS = 'EPSG:4326';
options.outSRS = 'EPSG:4326';
options.fields = 'OBJECTID,SHAPE,NAME,SHAPE_LENG,XZQHDM,SHAPE_Length,SHAPE_Area';
options.where = '';
options.version = 2.0;
var query = new L.kqmap.services.OverlapAnalysis(options);
query.queryAsync(good_func, error_func);
Extends
Methods
-
inherited queryAsync(func_good(), func_error())
leaflet/services/QueryBase.js, line 48 -
查询请求,由子类实例化后调用。
Name Type Description func_good()
function 查询成功后处理函数。
func_error()
function 查询错误后处理函数。